Hi,
On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote:
> Hi Kai,
> Could you share you code how your save your filter in session?
Yes:
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
> james
Greetings :)
Kai
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---