1 Commits

Author SHA1 Message Date
imperosol
0f00c91b59 push url on club search form submit 2026-03-30 19:39:13 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -29,6 +29,7 @@
hx-get="{{ url("club:club_list") }}" hx-get="{{ url("club:club_list") }}"
hx-target="#content" hx-target="#content"
hx-swap="outerHtml" hx-swap="outerHtml"
hx-push-url="true"
> >
<div class="row gap-4x"> <div class="row gap-4x">
{{ form }} {{ form }}

View File

@@ -206,7 +206,7 @@ class ClubListView(AllowFragment, FormMixin, ListView):
template_name = "club/club_list.jinja" template_name = "club/club_list.jinja"
form_class = ClubSearchForm form_class = ClubSearchForm
queryset = Club.objects.order_by("name") queryset = Club.objects.order_by("name")
paginate_by = 1 paginate_by = 20
def get_form_kwargs(self): def get_form_kwargs(self):
res = super().get_form_kwargs() res = super().get_form_kwargs()