diff options
| author | Tim Graham <timograham@gmail.com> | 2015-05-13 09:52:19 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-05-13 10:34:15 -0400 |
| commit | df0674eabb898d87d8267c5ade026dbf17fd01a8 (patch) | |
| tree | 0e33f4db711dbe6039ab75d1cd12acea7960d5a0 /django | |
| parent | 7ea6477b3ad3a0da3196e5d3f5f09369e76c8cc5 (diff) | |
[1.8.x] Fixed #24751 -- Fixed HStoreField isnull lookup.
Backport of 3c8fe5dddf34533a419d2deed5208a28de32cb4a from master
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/postgres/fields/hstore.py | 2 |
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): |
