On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote: > > hi, > > > def list_filter(request): > > """Update session filter""" > > # request['filter'] is a hidden field. frankly, I don't know if > > this is really needed. > > # I added it in case I add another form to the template > > if request.method == 'POST' and request['filter'] == '1': > > request.session['filter_title'] = request.POST['title'] > > request.session['filter_genre'] = request.POST['genre'] > > request.session['filter_rating'] = request.POST['rating'] > > return HttpResponseRedirect('/') > > > > thanks kai :). is this request['filter'] a django builtin or u just > created it?
No, I added it. It's a hidden field just to check that's the filter that is fired up and not another form on the page. To tell the truth, this should be request.POST['filter'] and I don't really know why request['filter'] worked. Thanks for pointing that out. :-) Kai --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---