diff options
| author | Simon Charette <charette.s@gmail.com> | 2019-03-06 02:05:32 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-03-21 20:54:21 -0400 |
| commit | 5935a9aeade517aebdceea989467d2b46c44d96f (patch) | |
| tree | 5926a2b149f9167b12c2f4d575b822883d16ffcb /django/contrib/postgres/fields/array.py | |
| parent | 3a505c70e7b228bf1212c067a8f38271ca86ce09 (diff) | |
Removed obsolete Lookup hook to prepare rhs expressions.
After 3a505c70e7b228bf1212c067a8f38271ca86ce09, all _prepare() methods
return self.
Diffstat (limited to 'django/contrib/postgres/fields/array.py')
| -rw-r--r-- | django/contrib/postgres/fields/array.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/postgres/fields/array.py b/django/contrib/postgres/fields/array.py index e00e7ac803..a344cccbcc 100644 --- a/django/contrib/postgres/fields/array.py +++ b/django/contrib/postgres/fields/array.py @@ -240,8 +240,7 @@ class ArrayLenTransform(Transform): class ArrayInLookup(In): def get_prep_lookup(self): values = super().get_prep_lookup() - if hasattr(self.rhs, '_prepare'): - # Subqueries don't need further preparation. + if hasattr(values, 'resolve_expression'): return values # In.process_rhs() expects values to be hashable, so convert lists # to tuples. |
