{% load i18n pagination_tags %}
{% autopaginate documents 20 %} {% for doc in documents %} {{doc.name}} {% endfor %} {% paginate %}