diff options
| author | Simon Charette <simon.charette@zapier.com> | 2019-09-01 14:25:28 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-02 10:52:36 +0200 |
| commit | 600628f8f0ab077c62223a54a6c8cde6cbbd1ed1 (patch) | |
| tree | c9e4e54667e90660c26dc4d7e68c29f2f50fe58f /tests/model_fields/test_integerfield.py | |
| parent | 999891bd80b3d02dd916731a7a239e1036174885 (diff) | |
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.
Diffstat (limited to 'tests/model_fields/test_integerfield.py')
0 files changed, 0 insertions, 0 deletions
