600628f8f0
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. |
||
---|---|---|
.. | ||
__init__.py | ||
files.py | ||
mixins.py | ||
proxy.py | ||
related.py | ||
related_descriptors.py | ||
related_lookups.py | ||
reverse_related.py |