[sqlalchemy] Using order_by in an association many-to-many relationship with columns from the association object

2009-03-10 Thread Scott
Is there a way with the current iteration of SQLAlchemy to add a column to the association table in a many-to-many relationship with that column used to order the join? I looked at the order_by attribute of the ManyToMany() relationship definition, but it seems that this is expecting a string

[sqlalchemy] Using order_by in an association many-to-many relationship with columns from the association object

2006-10-29 Thread Raul Garcia
Greetings list, I've trying to order a property which is a many-to-many relationship with an association object, with columns that belong not to the relationship table but to the associated one. I think it's better to explain with an example, using the tables of the docs: items = Table('items',