mirror of
https://github.com/django/django.git
synced 2025-08-22 11:34:33 +00:00
[1.8.x] Fixed #24751 -- Fixed HStoreField isnull lookup.
Backport of 3c8fe5dddf
from master
This commit is contained in:
parent
7ea6477b3a
commit
df0674eabb
3 changed files with 14 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue