Open xicopetry opened 6 years ago
The pagination of articles are not working correctly.
The page seems not to be changing.
In the template, articles.html
{% if page_obj.has_next %} <a class="infinite-more-link" href="?page={{ articles.next_page_number }}">More</a> {% endif %}
The correct is to take the page number from the page_obj.
Like this:
{% if page_obj.has_next %} <a class="infinite-more-link" href="?page={{ page_obj.next_page_number }}">More</a> {% endif %}
did u still fix this??
The pagination of articles are not working correctly.
The page seems not to be changing.
In the template, articles.html
The correct is to take the page number from the page_obj.
Like this: