On Mar 2, 2007, at 04:35 , Seth Buntin wrote: > I have this: > > request.session["order_items"] = [] > > and on certain views I have: > > request.session["order_items"].append(order_item.id)
Maybe is just shoot in the dark, but... Looking at SessionWrapper.__setitem__ your request.session ["order_items"].append(order_item.id) newer sets session modified flag because __setitem__ newer gets called. I was bitten many times by the similar problem. Try: request.session["order_items"] = request.session["order_items"] + [order_item.id] this way SessionWrapper.__setitem__ will be called and session will be marked as modified. Hope that helps. IIRC Quixote had a set of the special list/tuple/dict/whatever classes which interact with the "set dirty" machinery and set "dirty" flag when content is modified (ZODB related). -- Nebojša Đorđević - nesh, ICQ#43799892 Studio Quattro - Niš - Serbia http://studioquattro.biz/ | http://code.google.com/p/django-utils/ Registered Linux User 282159 [http://counter.li.org] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---