Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

audit trail dont log field with not callable default attribute #9

@whitespy

Description

@whitespy

I have a model:

class Foo(models.Model):
status = models.CharField(_('status'), max_length=30, choices=STATUS_CHOICES,
default=STATUS_CREATED)
...

audit_trail_watch(Order, fields=['status'])

When I create an entity of the model, audit trail does not log status field change, because there are default = STATUS_CREATED. This should be considered a mistake or feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions