summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-05-13 09:52:19 -0400
committerTim Graham <timograham@gmail.com>2015-05-13 10:31:59 -0400
commit3c8fe5dddf34533a419d2deed5208a28de32cb4a (patch)
treeada2a961ac10d89bb02270d5f05d2b96aabc4b9d /django
parent81d4ce4a6d21f0e65cabb253927770b3616cb560 (diff)
Fixed #24751 -- Fixed HStoreField isnull lookup.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/postgres/fields/hstore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/fields/hstore.py b/django/contrib/postgres/fields/hstore.py
index 461fa047e2..b8e47edf17 100644
--- a/django/contrib/postgres/fields/hstore.py
+++ b/django/contrib/postgres/fields/hstore.py
@@ -78,7 +78,7 @@ class KeyTransform(Transform):
def as_sql(self, compiler, connection):
lhs, params = compiler.compile(self.lhs)
- return "%s -> '%s'" % (lhs, self.key_name), params
+ return "(%s -> '%s')" % (lhs, self.key_name), params
class KeyTransformFactory(object):