1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

accounts view sorts users by username

This commit is contained in:
Jan Krcmar 2016-05-06 14:39:52 +02:00
parent c4ae3d2982
commit 9327cf36c4

View file

@ -83,7 +83,7 @@ def accounts(request):
return HttpResponseRedirect(reverse('index')) return HttpResponseRedirect(reverse('index'))
error_messages = [] error_messages = []
users = User.objects.all() users = User.objects.all().order_by('username')
create_missing_userattributes(users) create_missing_userattributes(users)
if request.method == 'POST': if request.method == 'POST':