Skip to content

Commit

Permalink
Fixed an infinite recursion bug when deleting a model, that has a rev…
Browse files Browse the repository at this point in the history
…erse relationship to a tracked model with SET_NULL on_delete
  • Loading branch information
nick-prat committed May 23, 2024
1 parent 324ea2b commit 4e46178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@
| Őry Máté <[email protected]>
| Nafees Anwar <[email protected]>
| meanmail <[email protected]>
| Nicholas Prat <[email protected]>
2 changes: 1 addition & 1 deletion model_utils/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def current(self, fields=None):
if deferred_fields:
fields = [
field for field in self.fields
if field not in deferred_fields
if self.field_map[field] not in deferred_fields
]
else:
fields = self.fields
Expand Down

0 comments on commit 4e46178

Please sign in to comment.