From 6ae35f8775a0908a7238f5c90d7f96fc56fbd758 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 10 May 2010 09:32:32 +0100 Subject: [PATCH] Fixes user application status update issue --- hr/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr/views.py b/hr/views.py index 78e08f3..62440b6 100644 --- a/hr/views.py +++ b/hr/views.py @@ -157,7 +157,7 @@ def update_application(request, applicationid, status): app = get_object_or_404(Application, id=applicationid) # Allow admins and users that are setting the application as awaiting review - if hrstaff or (app.user == request.user and status == APPLICATION_STATUS_AWAITINGREVIEW): + if hrstaff or (app.user == request.user and int(status) == APPLICATION_STATUS_AWAITINGREVIEW): if not app.status == status: app.status = status app.save(user=request.user)