Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Commit

Permalink
frontend: fix ordering of pc list
Browse files Browse the repository at this point in the history
  • Loading branch information
micolous committed Oct 27, 2012
1 parent 90cfc9a commit 31fccdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tollgate/frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 31fccdd

Please sign in to comment.