diff --git a/app/hr/views.py b/app/hr/views.py index 4a474af..3f69e51 100644 --- a/app/hr/views.py +++ b/app/hr/views.py @@ -160,12 +160,13 @@ class HrAdminApplications(ListView): # If a invalid order as been passed, correct it if not order in ['id', 'corporation__name', 'character__name']: order = 'id' + apps = apps.order_by(order) # If we've got a short search string, only get the first 50 if query and len(query) < 3: apps = apps[:50] - return apps.order_by(order) + return apps class HrUpdateApplication(BaseDetailView):