From f1f44a93b2e4fbf9aa7fea4daf3bc9c541c33b9a Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Sat, 3 Jan 2026 15:15:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=20GET-=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B2=20=D0=BF=D0=B0=D0=B3=D0=B8=D0=BD=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Убран нерабочий хак с params.pop - Все ссылки пагинации теперь явно передают параметры: * q (поисковый запрос) * has_notes (фильтр заметок) * no_phone (фильтр отсутствия телефона) * no_email (фильтр отсутствия email) - Пагинация теперь работает корректно с сохранением всех фильтров --- .../templates/customers/customer_list.html | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/myproject/customers/templates/customers/customer_list.html b/myproject/customers/templates/customers/customer_list.html index 8f7bcb8..8b44661 100644 --- a/myproject/customers/templates/customers/customer_list.html +++ b/myproject/customers/templates/customers/customer_list.html @@ -128,19 +128,16 @@ {% if page_obj.has_other_pages %} - {# Сохраняем все GET-параметры кроме page #} - {% with params=request.GET.copy %} - {% if params.page %}{{ params.pop|slice:":0" }}{% endif %} - {% endwith %} {% endif %} {% else %}