{% if paginator.previous_page %} Previous {% endif %} {% if paginator.next_page %} Next {% endif %}