1
0
mirror of https://github.com/django/django.git synced 2025-03-06 15:32:33 +00:00
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
..
2014-03-08 16:17:54 -08:00
2013-12-24 12:25:17 +01:00
2013-12-24 12:25:17 +01:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-10 15:12:48 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-10 15:12:48 -05:00
2013-11-03 10:17:58 -08:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-10 15:12:48 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-14 11:59:15 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:38 -05:00
2013-11-02 23:50:38 -05:00
2013-11-02 23:48:47 -05:00
2013-12-24 12:25:17 +01:00
2013-11-03 10:17:58 -08:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-12-14 11:59:15 -05:00
2014-02-28 09:54:53 +01:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-12-17 11:16:48 +01:00
2014-03-21 22:16:31 +01:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00