On Thursday, February 7, 2013 2:10:33 PM UTC-7, Michael Bayer wrote:
>
> use a quoted expression that isn't evaluated until mapper configuration
> time:
>
> parent = relationship("Test", remote_side="Test.id")
>
That did it, thanks.
--
You received this message because you are subscribed to
use a quoted expression that isn't evaluated until mapper configuration time:
parent = relationship("Test", remote_side="Test.id")
On Feb 7, 2013, at 3:51 PM, ru...@yahoo.com wrote:
> How does one define a self-referential relationship when using
> declarative objects and reflection? Based on
How does one define a self-referential relationship when using
declarative objects and reflection? Based on
http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html#adjacency-list-relationships
I wrote the code below but when I run it I get an exception when
the session.query() line is