diff options
| author | Loic Bistuer <loic.bistuer@gmail.com> | 2014-03-27 19:32:48 +0800 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@gmail.com> | 2014-03-30 15:36:45 +0700 |
| commit | 20399083f49faceef1e48530822137257bca9d6a (patch) | |
| tree | 6f1c65e9284e8f9a1489c99cc0045bfbe7301dc7 /tests/postgres_tests | |
| parent | 2f3e1fe3234f5ebaca7635b0a080c2a751c3c758 (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 'tests/postgres_tests')
0 files changed, 0 insertions, 0 deletions
