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

All hosts browsing: change sorting

Order all hosts in /browse/ by name in alphabetical order. I think it is
better, because hosts will not drift across pages at every timestamp
update.
This commit is contained in:
Hidden Z 2013-10-09 15:19:00 +00:00
parent 7327964135
commit e4f5ae4a6c

View File

@ -44,7 +44,7 @@ class FaqView(LocalObjectList):
class HostsListsView(LocalObjectList):
""" Renders list of active hosts """
queryset = i2phost.objects.filter(activated=True).order_by("-last_seen")
queryset = i2phost.objects.filter(activated=True).order_by("name")
template_name = 'browse.html'
context_object_name = 'host_list'
paginate_by = 40