Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an infinite recursion bug when deleting models related to a tracked model with a ForeignKey #620

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading