fixed 1757:Broken support for 'belongs' with GAE datastore, thanks Alan
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.7.4-stable+timestamp.2013.11.06.11.12.23
|
||||
Version 2.7.4-stable+timestamp.2013.11.06.11.14.11
|
||||
|
||||
@@ -4858,7 +4858,7 @@ class GoogleDatastoreAdapter(NoSQLAdapter):
|
||||
return '%s, %s' % (self.expand(first),self.expand(second))
|
||||
|
||||
def BELONGS(self,first,second=None):
|
||||
if not isinstance(second,(list, tuple)):
|
||||
if not isinstance(second,(list, tuple, set)):
|
||||
raise SyntaxError("Not supported")
|
||||
if first.type != 'id':
|
||||
return [GAEF(first.name,'in',self.represent(second,first.type),lambda a,b:a in b)]
|
||||
|
||||
Reference in New Issue
Block a user