Handle objects as keys in ndb.all(). Resolve #2378.

This commit is contained in:
Griatch 2021-08-16 21:36:01 +02:00
parent 4b9dc9a0c3
commit d74aa02433

View file

@ -1128,4 +1128,4 @@ class NAttributeHandler(object):
"""
if return_tuples:
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("_")]