summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_integerfield.py
diff options
context:
space:
mode:
authorSimon Charette <simon.charette@zapier.com>2019-09-01 14:25:28 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-02 10:52:36 +0200
commit600628f8f0ab077c62223a54a6c8cde6cbbd1ed1 (patch)
treec9e4e54667e90660c26dc4d7e68c29f2f50fe58f /tests/model_fields/test_integerfield.py
parent999891bd80b3d02dd916731a7a239e1036174885 (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