I am working on an application which needs to work like so: A user enters search criteria in a search form and when submit is clicked, if any records match the criteria, the user is taken to the first record in the results set. The user can click "Next" to go to the next record in the result set, and "Previous" to go back to the previous record in the result set.
I currently have a search view which applies the criteria via queryset chaining and then returns the first and second objects from the result set to a template which displays the first object and then provides a link to the second one as a link to "Next". Although clicking the "Next" link takes the user to the correct record, all the search criteria are (of course) lost so after that the "Next" link doesn't work properly. How would I set up the "next" link in the template, the associated urlconf entry, and the view so that this all works together? How do I preserve the search criteria so that the user can navigate easily through the search results? Use query string parameters? I apologize if this question is elementary and/or has been answered elsewhere. I did some searching and I couldn't find anything similar to this particular problem. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---