Sort users by name in /user
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 2 Aug 2010 21:26:59 +0000 (21:26 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 2 Aug 2010 21:26:59 +0000 (21:26 +0000)
bin/djais/views.py

index 9726731614ff54fad6b0bf446a7bf616bb997225..f52c8709c41d647551ec05d8b646031e554982df 100644 (file)
@@ -520,7 +520,7 @@ def fleet_lastpos(request, fleetname):
 
 @http_authenticate(auth, 'ais')
 def users(request):
-    users = User.objects.all()
+    users = User.objects.order_by('name')
     for user in users:
         user.admin_ok = user.is_admin_by(request.user.id)
     if request.REQUEST.has_key('showtree'):