{% if page_obj.has_other_pages %} {% if is_paginated %} {% endif %} {% endif %}