From a57be2614c30eae6752525c33a530cbc87ff2a3e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 3 Dec 2011 17:52:48 +0100 Subject: [PATCH] sort --- pandora/user/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora/user/views.py b/pandora/user/views.py index a69a2c20..ab87dfdf 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -413,16 +413,19 @@ def order_query(qs, sort): if operator != '-': operator = '' key = { + 'browser': 'browser', 'email': 'user__email', 'firstseen': 'firstseen', 'ip': 'ip', 'lastseen': 'lastseen', + 'level': 'level', + 'location': 'location', 'screensize': 'screensize', + 'system': 'system', 'timesseen': 'timesseen', 'useragent': 'useragent', 'username': 'username', 'windowsize': 'windowsize', - 'level': 'level', }.get(e['key'], 'user__profile__%s'%e['key']) if key == 'user__profile__numberoflists': qs = qs.annotate(numberoflists=Sum('user__lists'))