Hi all, I have a query that gets conditionally extending depending on what's going with a given request. I've got a section where it should join something and search on that join, but if the same join has already happened, I get an error. I've figured out i can do the following, which looks like I'm stepping out of the public api:
if UserOrgRoleAssoc not in [ent.class_ for ent in query._join_entities]: query.join(UserOrgRoleAssoc) Is there a better (proper?) way to do this? thanks! Iain -- 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 sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.