diff --git a/myproject/customers/templates/customers/customer_list.html b/myproject/customers/templates/customers/customer_list.html index 8fdfbb6..35cc1fe 100644 --- a/myproject/customers/templates/customers/customer_list.html +++ b/myproject/customers/templates/customers/customer_list.html @@ -128,16 +128,19 @@ {% if page_obj.has_other_pages %} + {# Сохраняем все GET-параметры кроме page #} + {% with params=request.GET.copy %} + {% if params.page %}{{ params.pop|slice:":0" }}{% endif %} + {% endwith %} {% endif %} {% else %}