Hi, 

I'm very new to Django so this might be a silly question, but I'm having an 
issue with the filter functionality on my site's search page. I am using 
the django-haystack module to interface with the Whoosh search engine, and 
it functions by reloading the page while sending the query as a GET 
parameter. This means when someone runs the search, say for soccer, on the 
site it loads the page with a url /search/?q=soccer 
On the same page I have a from with a bunch of category check-boxes that I 
would like to use to filter the search results. I run into the problem 
however that if I submit the form and reload the page it does not remember 
the search text, and If I run the search and reload the page it does not 
remember which categories were selected.

Is there a way in Django for me to pull both of these pieces of information 
and mess around with them in views.py, while maintaining the state of the 
category form and search box? Sorry if this is a strange question, and 
thanks for any help!

Regards,
R. Eli

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a25b09a0-be13-4f18-8752-ea1bb6b9f1a0%40googlegroups.com.

Reply via email to