django1/django/db/models/fields
Simon Charette 600628f8f0 Refs #28442 -- Adjusted related lookups handling of expression rhs.
Expressions should never be prepared as other Lookup.get_prep_lookup
implementations hint at by returning early on the presence of the
resolve_expression attribute.

The previous solution was only handling lookups against related fields
pointing at AutoFields and would break for foreign keys to other fields.

It was also causing bidirectional coupling between model fields and
expressions which the method level import of OuterRef was a symptom of.
2019-09-02 10:52:36 +02:00
..
__init__.py Refs #28442 -- Adjusted related lookups handling of expression rhs. 2019-09-02 10:52:36 +02:00
files.py Refs #28428 -- Made FileField.upload_to support pathlib.Path. 2019-08-18 20:34:58 +02:00
mixins.py Refs #28834 -- Moved ancestor field cached value fallback to related fields descriptor. 2018-05-14 21:17:02 -04:00
proxy.py Removed unused OrderWrt.deconstruct(). 2017-07-06 18:45:53 -04:00
related.py Refs #28147 -- Fixed setting of OneToOne and Foreign Key fields to None when using attnames. 2019-07-27 12:04:56 +02:00
related_descriptors.py Refs #28147 -- Fixed setting of OneToOne and Foreign Key fields to None when using attnames. 2019-07-27 12:04:56 +02:00
related_lookups.py Refs #28442 -- Adjusted related lookups handling of expression rhs. 2019-09-02 10:52:36 +02:00
reverse_related.py Fixed #30449 -- Fixed RelatedFieldListFilter/RelatedOnlyFieldListFilter to respect model's Meta.ordering. 2019-08-15 10:29:05 +02:00