<div class="pagination">
<span class="step-links">
  {% if list.has_previous %}
      <a href="?page={{ list.previous_page_number }}">previous</a>
  {% endif %}

  <span class="current">
      Page {{ list.number }} of {{ list.paginator.num_pages }}.
  </span>

  {% if products.has_next %}
      <a href="?page={{ list.next_page_number }}">next</a>
  {% endif %}
</span>
</div>
<div class="pagination">
<span class="step-links">
  {% if list.has_previous %}
      <a href="?page={{ list.previous_page_number }}">previous</a>
  {% endif %}

  <span class="current">
      Page {{ list.number }} of {{ list.paginator.num_pages }}.
  </span>

  {% if list.has_next %}
      <a href="?page={{ list.next_page_number }}">next</a>
  {% endif %}
</span>
</div>
Fix "next" link of pagination lost
Fix "next" link of pagination lost
