On Jun 17, 1:48 pm, Matt Haggard <[EMAIL PROTECTED]> wrote:
>
> mapper(SaqType, types_table, order_by=types_table.c.id, properties={
> 'qs' :relation(SaqJoin, order_by=join_table.c.ord),
> 'my_sections' :relation(Section, secondary=sections_by_type,
> primaryjoin = types_table.c.id == sections_by_type.c.type_id,
> backref='type', order_by=sections_table.c.secnum),})
>
put a "viewonly=True" on that relation() since SA is not going to know
how to write into a select() for a "secondary" table.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---