On 26 Ago, 18:41, Michael Bayer <[email protected]> wrote: > of course you'll get a cycle if you do this, though: > > s1 = School(cod="S1", cod_riferimento="S1", cliente=False) > d1 = School(cod="D1", cod_riferimento="S1", cliente=False) > s1.sedi = [s1, d1] >
That was it! now I got it. thanks. > s1->s1 is not supported by self referential flushes, unless you put > post_update=True on the relation() you have there. that works Thanks as usual for your great support sandro *:-) -- 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.
