> some_alg = sess.query(Alg).get(8) > sess.query(Email).filter(~Email.threads.any(Thread.alg==some_alg)) > > The clause "Thread.alg=<some alg>" *should* just generate the clause > "thread.algid=8"...it shouldn't pull in the "alg" table at all since > its not needed for many-to-one comparison.
That works perfectly -- thanks Mike! -Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
