Commit d00fcafa authored by Gladys Forte's avatar Gladys Forte

filtered delegation fix

parent 28887d40
......@@ -63,7 +63,7 @@ class AdminDepartmentViewSet(viewsets.ModelViewSet):
try:
dept_code = kwargs['code']
queryset = Delegation.objects.filter(department__code=dept_code)
queryset = Delegation.objects.filter(departments__code=dept_code)
page = self.paginate_queryset(queryset)
if page is not None:
......
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