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:
parent
38109637cd
commit
92098bf0c7
@ -8,4 +8,8 @@
|
||||
{{ host.description }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% load paginator %}{% paginator 3 %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
@ -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('',
|
||||
|
Loading…
x
Reference in New Issue
Block a user