diff options
author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-03-14 17:34:49 +0000 |
---|---|---|
committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-11-04 09:26:40 +0000 |
commit | 36f514f06553ef299001b4e9a5f63ec806a50581 (patch) | |
tree | 966c1b958c49cd266f76c385acb0a2bd330f7c10 /django/contrib/postgres/fields/array.py | |
parent | 5c517ec21839358249c6f17611abbf84661fb200 (diff) | |
download | django-36f514f06553ef299001b4e9a5f63ec806a50581.tar.gz |
Added HStoreField.
Thanks to `django-hstore` for inspiration in some areas, and many people
for reviews.
Diffstat (limited to 'django/contrib/postgres/fields/array.py')
-rw-r--r-- | django/contrib/postgres/fields/array.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/fields/array.py b/django/contrib/postgres/fields/array.py index 1a969d7c0e..ab57ccb110 100644 --- a/django/contrib/postgres/fields/array.py +++ b/django/contrib/postgres/fields/array.py @@ -168,7 +168,7 @@ class ArrayContainsLookup(Lookup): lhs, lhs_params = self.process_lhs(qn, connection) rhs, rhs_params = self.process_rhs(qn, connection) params = lhs_params + rhs_params - type_cast = self.lhs.source.db_type(connection) + type_cast = self.lhs.output_field.db_type(connection) return '%s @> %s::%s' % (lhs, rhs, type_cast), params |