On 6/11/14, 2:17 PM, Jonathan Vanasco wrote: > I can't find this in the API or by using `inspect` on an object. > > I'm trying to find out how to tell if a particular relationship was loaded or not. > > ie, I loaded Foo from the ORM, and want to see if foo.bar was loaded. > > I thought it might have been the `.attrs[column].state` , which is an InstanceState, but it doesn't appear to be so.
usually we do "key" in obj.__dict__ or "key" in inspect(obj).dict. -- 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 http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.