Re: [sqlalchemy] Re: Preventing attribute expiration (0.7, ORM)

2011-06-20 Thread Michael Bayer
On Jun 20, 2011, at 3:18 AM, Maciej Szumocki wrote: > On 17 Cze, 16:20, Michael Bayer wrote: > >> I usually just turn expire_on_commit = False. But note also if you just >> want to do a get(), the actual PK is always present in the "key", which is >> instance_state(myinstance).key[1]. >

[sqlalchemy] Re: Preventing attribute expiration (0.7, ORM)

2011-06-20 Thread Maciej Szumocki
On 17 Cze, 16:20, Michael Bayer wrote: > I usually just turn expire_on_commit = False.      But note also if you just > want to do a get(), the actual PK is always present in the "key", which is > instance_state(myinstance).key[1]. I do want rest of the attributes to expire, which makes expire