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:
parent
7327964135
commit
e4f5ae4a6c
@ -44,7 +44,7 @@ class FaqView(LocalObjectList):
|
|||||||
class HostsListsView(LocalObjectList):
|
class HostsListsView(LocalObjectList):
|
||||||
""" Renders list of active hosts """
|
""" 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'
|
template_name = 'browse.html'
|
||||||
context_object_name = 'host_list'
|
context_object_name = 'host_list'
|
||||||
paginate_by = 40
|
paginate_by = 40
|
||||||
|
Loading…
x
Reference in New Issue
Block a user