mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
The complications are that when the attribute is set in Django 1.10, it no longer counts as a deferred attribute, and it is not retrieved from the database. Naively updating __set__ to retrieve the value if it is deferred leads to infinite recursion because accessing the attribute involves loading data from the database and trying to set the attribute based on that value. This commit introduces a somewhat hacky flag that records whether we're already trying to set the attribute further up in the call stack. |
||
|---|---|---|
| .. | ||
| locale/de/LC_MESSAGES | ||
| __init__.py | ||
| choices.py | ||
| fields.py | ||
| managers.py | ||
| models.py | ||
| tracker.py | ||