From 9327cf36c49eeee0b67db1bd6167670de4a17f65 Mon Sep 17 00:00:00 2001 From: Jan Krcmar Date: Fri, 6 May 2016 14:39:52 +0200 Subject: [PATCH] accounts view sorts users by username --- accounts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/views.py b/accounts/views.py index 2669d94..371758b 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -83,7 +83,7 @@ def accounts(request): return HttpResponseRedirect(reverse('index')) error_messages = [] - users = User.objects.all() + users = User.objects.all().order_by('username') create_missing_userattributes(users) if request.method == 'POST':