diff --git a/helpdesk/methods.py b/helpdesk/methods.py index e2ac89c9e..438c3d154 100644 --- a/helpdesk/methods.py +++ b/helpdesk/methods.py @@ -1,9 +1,7 @@ - - from helpdesk.models import DepartmentManager -def is_department_manager(request,ticket): +def is_department_manager(request, ticket): """ Method used to find the user is a department manger of given ticket """ @@ -16,6 +14,5 @@ def is_department_manager(request,ticket): else: return False return DepartmentManager.objects.filter( - manager = user_emp, - department = department + manager=user_emp, department=department ).exists() diff --git a/helpdesk/templates/helpdesk/ticket/ticket_claim_requests.html b/helpdesk/templates/helpdesk/ticket/ticket_claim_requests.html index 6a8044352..53a678f2a 100644 --- a/helpdesk/templates/helpdesk/ticket/ticket_claim_requests.html +++ b/helpdesk/templates/helpdesk/ticket/ticket_claim_requests.html @@ -33,7 +33,7 @@ > {% trans "Action" %} - +