Re: Model instance refreshing

2009-08-18 Thread mettwoch
Oooh, obvious! It requires alot of changes, but I think I'll do it. Thanks Colin Marc On Aug 17, 10:43 pm, Colin Bean wrote: > On Mon, Aug 17, 2009 at 1:31 PM, mettwoch wrote: > > > Hi, > > > I use a session to store several instances of different models coming > > from a: > > > some_model.obj

Re: Model instance refreshing

2009-08-17 Thread Colin Bean
On Mon, Aug 17, 2009 at 1:31 PM, mettwoch wrote: > > Hi, > > I use a session to store several instances of different models coming > from a: > > some_model.objects.get(pk = some_pk) > > When the data in the db changes the model instances in the session > still contain the old data. What would be a

Model instance refreshing

2009-08-17 Thread mettwoch
Hi, I use a session to store several instances of different models coming from a: some_model.objects.get(pk = some_pk) When the data in the db changes the model instances in the session still contain the old data. What would be a good strategy to make shure that all objects in a session get fre