Fix consists pagination and remove hardcoded urls

This commit is contained in:
2022-07-10 22:48:45 +02:00
parent d39cd47280
commit 353da224be
7 changed files with 48 additions and 24 deletions

View File

@@ -22,7 +22,11 @@ urlpatterns = [
GetHomeFiltered.as_view(),
name="search_pagination",
),
path("consist", Consists.as_view(), name="consists"),
path("consists", Consists.as_view(), name="consists"),
path(
"consists/<int:page>",
Consists.as_view(), name="consists_pagination"
),
path("consist/<uuid:uuid>", GetConsist.as_view(), name="consist"),
path(
"consist/<uuid:uuid>/<int:page>",