1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-22 12:34:17 +00:00

Enable pagination in hosts browsing

This commit is contained in:
Hidden Z 2010-11-06 21:14:39 +00:00
parent 38109637cd
commit 92098bf0c7
2 changed files with 5 additions and 0 deletions

View File

@ -8,4 +8,8 @@
{{ host.description }}</td></tr>
{% endfor %}
</table>
{% if is_paginated %}
{% load paginator %}{% paginator 3 %}
{% endif %}
{% endblock %}

View File

@ -24,6 +24,7 @@ browse_hosts = {
'queryset': i2phost.objects.filter(activated=True).order_by("-last_seen"),
'template_name': 'browse.html',
'template_object_name': 'host',
'paginate_by': 40,
}
urlpatterns = patterns('',