Answer the question
In order to leave comments, you need to log in
Django filtering on get parameters on page change?
Actually the question is, I do filtering by passing parameters to get, but the trouble is that they are not saved on the new page, and after ? just page=. Actually, is there a way to save filters during pagination????
Answer the question
In order to leave comments, you need to log in
There is a good django-spurl plugin called, specifically for pagination, I apply it like this
{% load spurl %}
<a href="{% spurl path=request.get_full_path query=request.GET set_query="page={{ page }}" %}">{{ page }}</a>
Nothing prevents you from passing all those get parameters to the template and inserting them into the paginator links.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question