django-model-utils/model_utils
Lucas Wiman a84c3afddd Fix behavior of .previous() in Django 1.10+.
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.
2018-06-28 13:15:56 -07:00
..
locale/de/LC_MESSAGES Add script and makefile tasks for making and compiling messages; un-gitignore .mo files. 2015-07-20 10:20:11 -06:00
__init__.py update changelog and versions for 3.1.2 2018-05-09 14:45:37 -03:00
choices.py Merge branch 'master' into fix-choices-deepcopy 2013-10-11 13:23:56 -06:00
fields.py Fix django 2.0 warnings 2017-01-12 12:16:46 -05:00
managers.py Remove version checks for django<1.8. 2018-06-21 12:41:42 -07:00
models.py Add fix + tests for abstract manager inheritance issue with StatusModel 2017-01-09 19:02:59 +00:00
tracker.py Fix behavior of .previous() in Django 1.10+. 2018-06-28 13:15:56 -07:00