{% for page_item in page_obj %} {% if forloop.last and next_page_url %}
{% endif %} {% include template_for_item with entry=page_item %} {% endfor %}