I'm using django and I have a search page that uses pagination.  All
works well, but if I change the search term the first page is fine,
but if I go to the 2nd page I see results from the previous search.  I
must manually reload the page to see the 2nd page for the new search
term.  Is there something I have to do so that these search results
are not cached or stored?

I filter the objects then pass that in to ObjectPaginator like so:
stuff = Stuff.objects.filter(name__icontains=query)
paginator = ObjectPaginator(stuff, 12)

What do I need to do in order for the pages to automatically refresh
with my current search query?

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to