Commit e34111be authored by Gladys Forte's avatar Gladys Forte

{dev bugfix} added filter dashboard overdue and awaiting count

parent dc0d4894
......@@ -202,6 +202,17 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
self.queryset = change_request.list_by_user_without_dept(
id_number)
self.queryset = change_request.filter_base(
self.queryset,
request.query_params.get('company_requested_to'),
request.query_params.get('department_requested_to'),
request.query_params.get('date_modified_from'),
request.query_params.get('date_modified_to'),
request.query_params.get('date_required_from'),
request.query_params.get('date_required_to'),
request.query_params.get('form_type'),
)
awaiting_filtered = change_request.filter_awaiting(self.queryset, id_number)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment