Michael, On 09/11/2012 23:40, Michael Bayer wrote:
...
Authuser.cellar = sao.relationship('Cellar', primaryjoin= ('Authuser.fk_cellar_id==Cellar.id')) With this query I don't get the authuser relation on the second record even so the fk_authuser_id is set to 1, which is the same as on the first record. above, fk_authuser_id is used by the Authuser.cellar relationship, not the Cellar.authuser relationship. You'd need fk_cellar_id to be meaningful in that case.
I looked at this for a long time and just didn't see this stupid mistake. Thanks a lot for putting me right. Werner -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.