fixed 1757:Broken support for 'belongs' with GAE datastore, thanks Alan
This commit is contained in:
1 parent
5cee4f8876
commit
65b883749a
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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