Use paginator.count, not page|length, in header

Fixes #3097
This commit is contained in:
Nick Smith 2016-10-20 10:09:14 +01:00 committed by Matt Westcott
parent a326cd8559
commit 992b315be6
3 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@ Changelog
* Fix: Remove responsive styles in embed when there is no ratio available (Gagaro)
* Fix: Parent page link in page search modal no longer disappears on hover (Dan Braghis)
* Fix: ModelAdmin views now consistently call `get_context_data` (Andy Babic)
* Fix: Header for search results on the redirects index page now shows the correct count when the listing is paginated (Nick Smith)
1.7 (20.10.2016)

View file

@ -28,7 +28,7 @@ Bug fixes
* Remove responsive styles in embed when there is no ratio available (Gagaro)
* Parent page link in page search modal no longer disappears on hover (Dan Braghis)
* ModelAdmin views now consistently call ``get_context_data`` (Andy Babic)
* Header for search results on the redirects index page now shows the correct count when the listing is paginated (Nick Smith)
Upgrade considerations
======================

View file

@ -2,7 +2,7 @@
{% if redirects %}
{% if query_string %}
<h2>
{% blocktrans count counter=redirects|length %}
{% blocktrans count counter=redirects.paginator.count %}
There is one match
{% plural %}
There are {{ counter }} matches