mirror of
https://github.com/ae-utbm/sith.git
synced 2026-03-31 07:49:39 +00:00
Compare commits
1 Commits
pagination
...
club-list
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f00c91b59 |
@@ -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 }}
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user