From 0f00c91b59c5477753df65b04656b63af062926d Mon Sep 17 00:00:00 2001 From: imperosol Date: Mon, 30 Mar 2026 19:37:48 +0200 Subject: [PATCH] push url on club search form submit --- club/templates/club/club_list.jinja | 1 + club/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/club/templates/club/club_list.jinja b/club/templates/club/club_list.jinja index 1367012b..8ae08bf3 100644 --- a/club/templates/club/club_list.jinja +++ b/club/templates/club/club_list.jinja @@ -29,6 +29,7 @@ hx-get="{{ url("club:club_list") }}" hx-target="#content" hx-swap="outerHtml" + hx-push-url="true" >
{{ form }} diff --git a/club/views.py b/club/views.py index f9bf5a1d..71cf8f0b 100644 --- a/club/views.py +++ b/club/views.py @@ -206,7 +206,7 @@ class ClubListView(AllowFragment, FormMixin, ListView): template_name = "club/club_list.jinja" form_class = ClubSearchForm queryset = Club.objects.order_by("name") - paginate_by = 1 + paginate_by = 20 def get_form_kwargs(self): res = super().get_form_kwargs()