{% if page.paginator.num_pages > 1 %} {% with params=request.GET.urlencode %} {% endwith %} {% endif %}