Thanks! This worked:
Document
Document2Image_1 = sa.orm.relationship( "Document2Image",
primaryjoin="""and_( Document2Image.document_id==Document.id ,
Document2Image.image_type_id==1 )""" , uselist=False )
document_image_1 = association_proxy('Document2Image_1', 'image')
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.