From 73584ac72e7de84c7fb745ed99922916029b4d91 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 19 Apr 2010 20:34:52 +0100 Subject: [PATCH] Added more statuses to the admin view --- hr/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hr/views.py b/hr/views.py index 8f8a28a..7b19bc7 100644 --- a/hr/views.py +++ b/hr/views.py @@ -129,7 +129,8 @@ def admin_applications(request): if not (request.user.is_staff or Group.objects.get(name=settings.HR_STAFF_GROUP) in request.user.groups.all()): return HttpResponseRedirect(reverse('hr.views.index')) - apps = Application.objects.filter(status=APPLICATION_STATUS_AWAITINGREVIEW) + view_status = [APPLICATION_STATUS_AWAITINGREVIEW, APPLICATION_STATUS_ACCEPTED, APPLICATION_STATUS_QUERY] + apps = Application.objects.filter(status=view_status) return render_to_response('hr/applications/admin/view_list.html', locals(), context_instance=RequestContext(request)) @login_required