Skip to content

Can't get json attribute from Set #315

@xunto

Description

@xunto

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:

pool.builds.data

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions