On May 10, 2011, at 6:09 AM, nostradamnit wrote:
>
> #features = relationship('Feature')
> ui_metadata = relationship('UIMetadata',
> primaryjoin=and_('category.c.id==ui_metadata.c.class_id',
> 'ui_metadata.c.class_type=="Category"'))
the mistake happening here regards the usage of and_() with string based
criterion. There's a description of this in the FAQ:
http://www.sqlalchemy.org/trac/wiki/FAQ#ImusingDeclarativeandsettingprimaryjoinsecondaryjoinusinganand_oror_andIamgettinganerrormessageaboutforeignkeys.
--
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.