Permalink
Browse files

frontend: fix ordering of pc list

  • Loading branch information...
1 parent 90cfc9a commit 31fccdd7caa33b73f349a504cf25b4fe64f654e3 @micolous committed Oct 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tollgate/frontend/views.py
@@ -850,7 +850,7 @@ def usage_disable(request, aid):
def pclist(request):
hosts = NetworkHost.objects.exclude(
user_profile__exact=None
- ).order_by('ip_address')
+ ).order_by('user_profile__user__username')
return render_to_response('frontend/pclist.html', {
'hosts': hosts,
@@ -862,7 +862,7 @@ def pclist(request):
def pclist_unowned(request):
hosts = NetworkHost.objects.filter(
user_profile__exact=None
- ).order_by('ip_address')
+ ).order_by('user_profile__user__username')
return render_to_response('frontend/pclist.html', {
'hosts': hosts,

0 comments on commit 31fccdd

Please sign in to comment.