Skip to content

For hooks, "was" should track change since last save, not initial value #141

@swehba

Description

@swehba

As it now stands, a django-lifecycle hook such as AFTER_UPDATE with was and changed_to parameters, compares the current value of a field to the initial value, not the last saved value. I'm not sure if this changed, but in its current form, it is not very useful. It would be much better to compare to the last saved value.

  • Did this feature change?
  • Is there a reason it doesn't compare to the last saved value?
  • Is there a different mechanism for tracking since the last save instead of the initial value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions