Alexandre Conrad wrote:
2010/2/26 Marcin Krol <mrk...@gmail.com>:
mapper(City, city_table, properties={'users':relation(User,
order_by='user_.id', backref='city_backref')})
Isn't it
order_by='user.id'
?
No. I explicitly named table 'user_' for it not to collide with Postgres
function 'user'.
Hmm but perhaps this _ is where problem comes from? I'll check this out.
Regards,
mk
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to sqlalch...@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.