fixed issue 1000, broken GAE belongs for field id, thanks Alan

This commit is contained in:
mdipierro
2012-09-12 11:10:58 -05:00
parent 2f6fbb689b
commit 0f546e7062
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.0.8 (2012-09-12 11:08:28) stable
Version 2.0.8 (2012-09-12 11:10:55) stable

View File

@@ -4349,7 +4349,7 @@ class GoogleDatastoreAdapter(NoSQLAdapter):
if first.type != 'id':
return [GAEF(first.name,'in',self.represent(second,first.type),lambda a,b:a in b)]
else:
second = [Key.from_path(first._tablename, i) for i in second]
second = [Key.from_path(first._tablename, int(i)) for i in second]
return [GAEF(first.name,'in',second,lambda a,b:a in b)]
def CONTAINS(self,first,second):