mirror of
https://github.com/ae-utbm/sith.git
synced 2026-03-28 22:39:43 +00:00
Fix 500 error on all broken pagination pages where with context was missing
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
{% endif %}
|
||||
|
||||
{% from "core/macros.jinja" import paginate_htmx %}
|
||||
{% from "core/macros.jinja" import paginate_htmx with context %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}File moderation{% endtrans %}
|
||||
|
||||
@@ -124,6 +124,9 @@
|
||||
This must be coupled with a view that handles pagination
|
||||
with the Django Paginator object.
|
||||
|
||||
Warning:
|
||||
You must include this macro `with context` as it uses the `querystring` macro
|
||||
|
||||
Parameters:
|
||||
current_page (django.core.paginator.Page): the current page object
|
||||
paginator (django.core.paginator.Paginator): the paginator object
|
||||
@@ -139,6 +142,9 @@
|
||||
|
||||
The replaced fragment will be #content so make sure you are calling this macro inside your content block.
|
||||
|
||||
Warning:
|
||||
You must include this macro `with context` as it uses the `querystring` macro
|
||||
|
||||
Parameters:
|
||||
current_page (django.core.paginator.Page): the current page object
|
||||
paginator (django.core.paginator.Paginator): the paginator object
|
||||
|
||||
Reference in New Issue
Block a user