From ad77aebe4f47fc4ee33700308f83bc3bf71fc20f Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sat, 6 Nov 2010 19:28:19 +0000 Subject: [PATCH] pyi2phosts/urls.py: add ordering for hosts browsing --- pyi2phosts/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyi2phosts/urls.py b/pyi2phosts/urls.py index 4310c3b..157e684 100644 --- a/pyi2phosts/urls.py +++ b/pyi2phosts/urls.py @@ -21,7 +21,7 @@ extsources = { } browse_hosts = { - 'queryset': i2phost.objects.filter(activated=True), + 'queryset': i2phost.objects.filter(activated=True).order_by("-last_seen"), 'template_name': 'browse.html', 'template_object_name': 'host', }