django1/django
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
..
apps Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings 2014-03-08 09:57:40 +01:00
bin Started attackign the next flake8 violation 2013-10-31 08:42:28 -07:00
conf Fixed #22302 -- Updated Finnish locale formats 2014-03-22 10:35:06 +01:00
contrib Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments. 2014-03-30 15:36:45 +07:00
core Fixed #22335 -- Fixed popen_wrapper error on non-English Windows systems. 2014-03-26 00:42:19 +01:00
db Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments. 2014-03-30 15:36:45 +07:00
dispatch Fixed many typos in comments and docstrings. 2014-03-03 07:38:09 -05:00
forms Add a useful stacklevel to some RemovedInDjango19Warnings 2014-03-27 15:44:52 +13:00
http Fixed many typos in comments and docstrings. 2014-03-03 07:38:09 -05:00
middleware Removed django.middleware.doc. Refs #20126. 2014-03-21 22:07:39 +01:00
template Fixed #22294 -- Prevented converting length filter output to string 2014-03-22 16:39:46 +01:00
templatetags Fixed #22306 -- Deprecated future versions of cycle and firstof template tags. 2014-03-28 18:55:06 -04:00
test Advanced deprecation warnings for 1.8. 2014-03-22 21:12:58 +01:00
utils Increased memoization cache size for language codes. 2014-03-29 19:47:15 +01:00
views Fixed #22306 -- Deprecated future versions of cycle and firstof template tags. 2014-03-28 18:55:06 -04:00
__init__.py Bumped version to reflect master is now pre-1.8. 2014-03-21 06:17:14 -04:00
shortcuts.py Moved relative URL handling added in refs #21177 to a better place. 2014-02-15 07:54:35 -05:00