Skip to content

Commit

Permalink
fix: set class based initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
EnriqueSoria committed Jun 7, 2024
1 parent ef76bb5 commit feaee9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_lifecycle/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def delete(self, *args, **kwargs):

def refresh_from_db(self, *args, **kwargs):
super().refresh_from_db(*args, **kwargs)
self._initial_state = self._snapshot_state()
self._initial_state = ModelState.from_instance(self)

@classmethod
@lru_cache(typed=True)
Expand Down

0 comments on commit feaee9f

Please sign in to comment.