mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Fix ordering on the HR application
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user