Update docs to use paginator.{next,previous}_page_path

This commit is contained in:
Parker Moore 2013-04-09 19:51:26 +02:00
parent b10939912f
commit c0f50f2c78
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ page with links to all but the current page.
{% if paginator.previous_page == 1 %}
<a href="/">Previous</a>
{% else %}
<a href="/page{{ paginator.previous_page }}">Previous</a>
<a href="{{ paginator.previous_page_path }}">Previous</a>
{% endif %}
</p>
{% else %}
@ -129,7 +129,7 @@ page with links to all but the current page.
{% if paginator.next_page %}
<p class="next">
<a href="/page{{ paginator.next_page }}">Next</a>
<a href="{{ paginator.next_page_path }}">Next</a>
</p>
{% else %}
<p class="next disabled">