From 36f514f06553ef299001b4e9a5f63ec806a50581 Mon Sep 17 00:00:00 2001 From: Marc Tamlyn Date: Fri, 14 Mar 2014 17:34:49 +0000 Subject: Added HStoreField. Thanks to `django-hstore` for inspiration in some areas, and many people for reviews. --- django/contrib/postgres/fields/array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/contrib/postgres/fields/array.py') 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 -- cgit v1.3