Hi!
I'm getting AssertionError: Dependency rule tried to blank-out primary key
column 'text_value.text_id' on instance '<TextValue at 0x7f6b260d9710>'
error while trying to update row using association proxy ('values') like
this:
session.add(Text(values={'pl': u'org', 'en': u'org'}))
text = session.query(Text).one()
text.values = {'pl': u'modified', 'en': u'modified'}
session.commit()
Working example is at
https://gist.github.com/piotr-dobrogost/74073cf11006fb68e555
What am I doing wrong?
Best regards,
Piotr Dobrogost
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.