Browse Source

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.
pull/1/head
Hidden Z 11 years ago
parent
commit
e4f5ae4a6c
  1. 2
      pyi2phosts/lib/generic.py

2
pyi2phosts/lib/generic.py

@ -44,7 +44,7 @@ class FaqView(LocalObjectList): @@ -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

Loading…
Cancel
Save