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 <[email protected]> wrote: > On Mon, Aug 17, 2009 at 1:31 PM, mettwoch<[email protected]> 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 good strategy to make > > shure that all objects in a session get fresh data on every request? > > > Marc > > > PS: Hopefully going live in 2 weeks ... to be continued > > I would only store the PK in the session and use it to get a new > instance of the model with every request. > > Colin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

