Skip to content
Snippets Groups Projects
Unverified Commit 237add88 authored by Wes Appler's avatar Wes Appler Committed by GitHub
Browse files

Fix wagtail user view pagination (#3613)

Closes #3607.

A quick one, just needed to have the variable changed from `page_obj` to
`users`, which is created and included in the context
[here](https://github.com/HyphaApp/hypha/blob/main/hypha/apply/users/admin_views.py#L167).
See screenshots below for a working example. Items per page was changed
from 20 to 5 to allow for demonstration. All other functionality works
as expected (ie. changing pages)
parent 29c7cb9c
No related branches found
No related tags found
1 merge request!30Merge v4.9.1
......@@ -17,7 +17,7 @@
{% include "wagtailusers/users/list.html" %}
{# call pagination_nav with no linkurl, to generate general-purpose links like <a href="?p=2"> #}
{% include "wagtailadmin/shared/pagination_nav.html" with items=page_obj %}
{% include "wagtailadmin/shared/pagination_nav.html" with items=users %}
{% else %}
{% if is_searching %}
<h2 role="alert">{% blocktrans trimmed %}Sorry, no users match "<em>{{ query_string }}</em>"{% endblocktrans %}</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment