Awesome =)
Your example definitely works.
But given my nature, I cannot leave things like this unanswered. So I took
a few steps back and debugged some more.
I removed a few fields from the model and added them one by one with
elixir. When using reverse I actually had to specify the field on the
oposite site this time, it gave me an error otherwise. Last time I tried
this I didn't.
I found that the errors first occurred when I tried to access
project.client.
So I tried adding post_update=True on client this time and it worked. God
knows I tried this once already but maybe in combination with other things
that wouldn't solve the problem. Or perhaps it was one the OneToMany side
if that matters.
So for future reference. You can in fact specify post_update and use_alter
in elixir like: client = ManyToOne('UserAccount', post_update=True,
use_alter=True)
Thanks again for your help.
//JD
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sqlalchemy/-/i5dOU84jpKUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.