Update docs to use paginator.{next,previous}_page_path
This commit is contained in:
parent
b10939912f
commit
c0f50f2c78
|
@ -98,7 +98,7 @@ page with links to all but the current page.
|
||||||
{% if paginator.previous_page == 1 %}
|
{% if paginator.previous_page == 1 %}
|
||||||
<a href="/">Previous</a>
|
<a href="/">Previous</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/page{{ paginator.previous_page }}">Previous</a>
|
<a href="{{ paginator.previous_page_path }}">Previous</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -129,7 +129,7 @@ page with links to all but the current page.
|
||||||
|
|
||||||
{% if paginator.next_page %}
|
{% if paginator.next_page %}
|
||||||
<p class="next">
|
<p class="next">
|
||||||
<a href="/page{{ paginator.next_page }}">Next</a>
|
<a href="{{ paginator.next_page_path }}">Next</a>
|
||||||
</p>
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="next disabled">
|
<p class="next disabled">
|
||||||
|
|
Loading…
Reference in New Issue