django1/django/db/models/fields
Loic Bistuer 20399083f4 Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments.
Since assignments on M2M or reverse FK descriptors is composed of a `clear()`,
followed by an `add()`, `clear()` could potentially affect the value of the
assigned queryset before the `add()` step; pre-evaluating it solves the problem.

This patch fixes the issue for ForeignRelatedObjectsDescriptor,
ManyRelatedObjectsDescriptor, and ReverseGenericRelatedObjectsDescriptor.
It completes 6cb6e1 which addressed ReverseManyRelatedObjectsDescriptor.
2014-03-30 15:36:45 +07:00
..
__init__.py Fixed the PostGIS circular imports caused by 1506c71a95. 2014-03-26 12:57:57 -04:00
files.py Removed PIL compatability layer per deprecation timeline. 2014-03-21 10:54:53 -04:00
proxy.py Added missing deconstruct() methods. 2013-12-06 15:23:34 +01:00
related.py Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments. 2014-03-30 15:36:45 +07:00
subclassing.py Fixed #12568 -- no error when accessing custom field's descriptor 2013-09-18 10:03:52 +03:00