Fix 500 error on all broken pagination pages where with context was missing

This commit is contained in:
2026-03-28 14:01:47 +01:00
parent 182cdbe590
commit 2a9bb46e97
7 changed files with 19 additions and 8 deletions

View File

@@ -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 %}

View File

@@ -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