On Jul 6, 10:08 am, Haes <haes...@gmail.com> wrote: > Hi, > > I've created a view which displays a simple list of all objects of one > model. If a 'search_string' URL parameter is defined, the list is > filtered by this search string and the search string itself will be > displayed in the template as well. > Please have a look at the complete view here:http://dpaste.com/hold/63722/ > > The problem now is, that the 'search_string' context dict entry is > always set to the last defined value, even if no 'search_string' URL > parameter is passed.
I believe you have been hit with one of the famous Python gotchas. http://www.ferg.org/projects/python_gotchas.html#contents_item_6 Best, BN --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---