mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.8.x] Fixed #24751 -- Fixed HStoreField isnull lookup.
Backport of 3c8fe5dddf from master
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user