20399083f4
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. |
||
---|---|---|
.. | ||
locale | ||
__init__.py | ||
admin.py | ||
apps.py | ||
checks.py | ||
fields.py | ||
forms.py | ||
generic.py | ||
management.py | ||
models.py | ||
tests.py | ||
views.py |