Fix ordering on the HR application

This commit is contained in:
2011-05-18 09:07:07 +01:00
parent 2e22a9663c
commit fccd7fa1f7
2 changed files with 3 additions and 3 deletions

View File

@@ -13,8 +13,8 @@
{% if apps %}
<table>
<tr><th><a href="{% url hr.views.admin_applications %}?o=id">Application ID</a></th>
<th><a href="{% url hr.views.admin_applications %}?o=character">Character</a></th>
<th><a href="{% url hr.views.admin_applications %}?o=corporation">Corporation</a></th>
<th><a href="{% url hr.views.admin_applications %}?o=character__name">Character</a></th>
<th><a href="{% url hr.views.admin_applications %}?o=corporation__name">Corporation</a></th>
<th>Application Status</th>
<th>Last Action Date</th>
<th>Last Action User</th></tr>

View File

@@ -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: