add interface to skip 10 or so pages
</a>
</li>
{% endif %}
+ {% with object_list.number as current_page %}
+ {% if object_list.number|add:'10' < object_list.paginator.num_pages %}
+ <li>
+ <a>
+ ...
+ </a>
+ </li>
+ {% if object_list.paginator.num_pages >= current_page|add:'9' %}
+ <li>
+ <a href="?page={{ current_page | add:"9" }}{% if filters %}{% for filter in filters %}{% if forloop.counter0 == 0 %}&Editor={{ filter.object.pk|safe }}{% elif forloop.counter0 == 1 %}&Partner={{ filter.object.pk|safe }}{% endif %}{% endfor %}{% else %}{% endif %}">
+ {{ current_page | add:"9" }}
+ </a>
+ </li>
+ {% endif %}
+ {% if object_list.paginator.num_pages >= current_page|add:'10' %}
+ <li>
+ <a href="?page={{ current_page | add:"10" }}{% if filters %}{% for filter in filters %}{% if forloop.counter0 == 0 %}&Editor={{ filter.object.pk|safe }}{% elif forloop.counter0 == 1 %}&Partner={{ filter.object.pk|safe }}{% endif %}{% endfor %}{% else %}{% endif %}">
+ {{ current_page | add:"10" }}
+ </a>
+ </li>
+ {% endif %}
+ {% if object_list.paginator.num_pages >= current_page|add:'11' %}
+ <li>
+ <a href="?page={{ current_page | add:"11" }}{% if filters %}{% for filter in filters %}{% if forloop.counter0 == 0 %}&Editor={{ filter.object.pk|safe }}{% elif forloop.counter0 == 1 %}&Partner={{ filter.object.pk|safe }}{% endif %}{% endfor %}{% else %}{% endif %}">
+ {{ current_page | add:"11" }}
+ </a>
+ </li>
+ {% endif %}
+ {% endif %}
+ {% endwith %}
{% else %}
{% for _ in range|slice:":10" %}
<li {% ifequal forloop.counter object_list.number %}
