From fccd7fa1f71262bc69266d320d0d1055bc16d2c2 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 18 May 2011 09:07:07 +0100 Subject: [PATCH] Fix ordering on the HR application --- app/hr/templates/hr/applications/admin/view_list.html | 4 ++-- app/hr/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/hr/templates/hr/applications/admin/view_list.html b/app/hr/templates/hr/applications/admin/view_list.html index 548e9bc..c835356 100644 --- a/app/hr/templates/hr/applications/admin/view_list.html +++ b/app/hr/templates/hr/applications/admin/view_list.html @@ -13,8 +13,8 @@ {% if apps %} - - + + diff --git a/app/hr/views.py b/app/hr/views.py index bbf643e..8ba2837 100644 --- a/app/hr/views.py +++ b/app/hr/views.py @@ -179,7 +179,7 @@ def admin_applications(request): if 'o' in request.GET: order = request.GET['o'] - if order in ['id', 'corporation', 'character']: + if order in ['id', 'corporation__name', 'character__name']: apps = apps.order_by(order) if 'l' in request.GET:
Application IDCharacterCorporationCharacterCorporation Application Status Last Action Date Last Action User