Handle objects as keys in ndb.all(). Resolve #2378.
This commit is contained in:
parent
4b9dc9a0c3
commit
d74aa02433
1 changed files with 1 additions and 1 deletions
|
|
@ -1128,4 +1128,4 @@ class NAttributeHandler(object):
|
||||||
"""
|
"""
|
||||||
if return_tuples:
|
if return_tuples:
|
||||||
return [(key, value) for (key, value) in self._store.items() if not key.startswith("_")]
|
return [(key, value) for (key, value) in self._store.items() if not key.startswith("_")]
|
||||||
return [key for key in self._store if not key.startswith("_")]
|
return [key for key in self._store if not str(key).startswith("_")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue