Re: [sqlalchemy] contains_eager limited by .first()?

2015-05-05 Thread Simon King
On Tue, May 5, 2015 at 2:45 AM, Gerald Thibault dieselmach...@gmail.com wrote: I have 2 classes, User and Address (i tried to make my test case resemble the contents of http://docs.sqlalchemy.org/en/latest/orm/loading_relationships.html#contains-eager), defined like this: from sqlalchemy

Re: [sqlalchemy] contains_eager limited by .first()?

2015-05-05 Thread Gerald Thibault
This example is simplified from my actual code, in which I am filtering the child objects, so joinedload isn't an option. I've solved the issue by using .one() instead of .first(), which seems to eliminate the filter, so everything is working, although I'm not sure what is being done

[sqlalchemy] contains_eager limited by .first()?

2015-05-04 Thread Gerald Thibault
I have 2 classes, User and Address (i tried to make my test case resemble the contents of http://docs.sqlalchemy.org/en/latest/orm/loading_relationships.html#contains-eager), defined like this: from sqlalchemy import * from sqlalchemy.ext.declarative import declarative_base from