Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't stringify a record if it contains mutable properties and no primary key #55

Open
asherf opened this issue Mar 24, 2015 · 1 comment

Comments

@asherf
Copy link

asherf commented Mar 24, 2015

If a primary key is not defined and there is a mutable property.
(For example a property defined with isa=dict) calling str(record) will fail:
KeyHashError: PK for returned an unhashable value; try setting a primary key in type MyRecord

@asherf asherf changed the title can can't stringify a record if it contains mutable properties and no primary key Mar 24, 2015
@samv
Copy link
Contributor

samv commented Mar 24, 2015

Looks like __hash__ is broken for those values, too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants