I have a model like this:
class Pool(db.Entity):
pool_name = Required(str, unique=True)
builds = Set(lambda: Build)
class Build(db.Entity):
data = Required(Json)
pools = Set(lambda: Pool)
but when I do something like:
I get:
def distinct(iter):
d = defaultdict(int)
for item in iter:
> d[item] = d[item] + 1
E TypeError: unhashable type: 'TrackedDict'
Tested on master branch(orm)