• Loic Bistuer's avatar
    Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments. · 20399083
    Loic Bistuer yazdı
    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.
    20399083
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...