Fix pagination url for 'view users in a group' (#6880)

pull/6891/head
Sagar Agarwal 2021-03-06 02:09:19 +05:30 zatwierdzone przez Matt Westcott
rodzic 571b9e1918
commit f9d1ec0bf7
4 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -19,6 +19,7 @@ Changelog
* Fix: Make image chooser "Select format" fields translatable (Helen Chapman, Thibaud Colas)
* Fix: Move labels above the form field in the image format chooser, to avoid styling issues at tablet size (Helen Chapman)
* Fix: `{% include_block with context %}` now passes local variables into the block template (Jonny Scholes)
* Fix: Fix pagination on 'view users in a group' (Sagar Agarwal)
2.12.3 (05.03.2021)

Wyświetl plik

@ -500,6 +500,7 @@ Contributors
* Lara Thompson
* Tibor Leupold
* Joan Eliot
* Sagar Agarwal
Translators
===========

Wyświetl plik

@ -38,6 +38,7 @@ Bug fixes
* StreamField required status is now consistently handled by the ``blank`` keyword argument (Matt Westcott)
* Show 'required' asterisks for blocks inside required StreamFields (Matt Westcott)
* Make image chooser "Select format" fields translatable (Helen Chapman, Thibaud Colas)
* Fix pagination on 'view users in a group' (Sagar Agarwal)
Upgrade considerations

Wyświetl plik

@ -14,7 +14,8 @@
{% include "wagtailusers/users/list.html" %}
{% include "wagtailadmin/shared/pagination_nav.html" with items=users linkurl="wagtailusers_users:index" %}
{# call pagination_nav with no linkurl, to generate general-purpose links like <a href="?p=2"> #}
{% include "wagtailadmin/shared/pagination_nav.html" with items=users %}
{% else %}
{% if is_searching %}
<h2 role="alert">{% blocktrans %}Sorry, no users match "<em>{{ query_string }}</em>"{% endblocktrans %}</h2>