summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@gmail.com>2014-03-27 19:32:48 +0800
committerLoic Bistuer <loic.bistuer@gmail.com>2014-03-30 15:36:45 +0700
commit20399083f49faceef1e48530822137257bca9d6a (patch)
tree6f1c65e9284e8f9a1489c99cc0045bfbe7301dc7 /scripts
parent2f3e1fe3234f5ebaca7635b0a080c2a751c3c758 (diff)
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.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions