This is a strange gremlin I have found, and am completely stumped.

The form:
A list view with filters which are in the form of drop-downs. A filter
is set in the session, and removed when the user selects "all ___" in
the drop-down. Basic stuff, right?

One drop-down works, the other does not:
two drop-downs are configured exactly the same, just with different
filters. In the view, the session filters are set and will be deleted
if the incoming value is '0'. There are two of these. One works, the
other does not.

Deleting all filters works fine:
If I delete all filters, it runs the EXACT SAME LINE OF CODE and works
fine.

For example:
This works: del request.session['theFilter']
This does not: del request.session['theFilter']

That's it. I got nothin. I *know* it is running the delete command in
both cases as I am sending this info thru to the template via some
debug code.

Any insight on this? Am I going about it all wrong? Why would it work
in one case and not the other?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to