Commit a8651357 authored by Gladys Forte's avatar Gladys Forte

{dev bugfix} SU and OUA added query

parent c3979f0a
......@@ -39,15 +39,15 @@ class UserDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet):
data = User.objects.filter(
department=code).exclude(id=1)
elif user_type == 'SU':
pass
data = User.objects.all().exclude(id=1)
elif user_type == 'OUA':
pass
data = User.objects.all().exclude(id=1)
else:
return Response(
{"message": "Logged user is unauthorize to access this section"},
status=status.HTTP_400_BAD_REQUEST
)
serializer = headers(data=data, many=True)
serializer.is_valid(raise_exception=False)
......
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