From e4f5ae4a6c23faed184cdb20601e0a0131f18583 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Wed, 9 Oct 2013 15:19:00 +0000 Subject: [PATCH] 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. --- pyi2phosts/lib/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyi2phosts/lib/generic.py b/pyi2phosts/lib/generic.py index 244996e..c794334 100755 --- a/pyi2phosts/lib/generic.py +++ b/pyi2phosts/lib/generic.py @@ -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