Michael,

transaction.account_id is not a primary key of transactions table. I
added fields I use for grouping to primary_key. Then I had to add
foreign_key argument to 'summary' relation() call. And finally it all
worked as expected.

However, I noticed that it doesn't actually matter which fields I use
for primary_key or foreign_key. As long as I specify these parameters
and use _any_ fields as values things start working and that doesn't
smell good.

Anyway, thanks a lot for you help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to