If I'm creating a relationship to a class "MyRelatedClass" using
declarative syntax, and I need to assign a column from MyRelatedClass
to the foreign_keys argument, it seems I have to say
foreign_keys=[MyRelatedClass.__mapper__.c.relate_id]. Is there any way
to just do something in the declarative style, such as:
foreign_keys=["MyRelatedClass.relate_id"] with the quotes?

Thanks,
Michael

-- 
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.

Reply via email to