Commit e3232439 authored by John Red Medrano's avatar John Red Medrano

fixing

parent c974c978
......@@ -13,8 +13,7 @@ class UserListTemplate(APIView):
pagination_class = CustomPagination
def get(self, request, *args, **kwargs):
try:
try:
serializer = ChangeRequestList
dept = self.request.query_params['department_code']
user_codes = models.User.objects.filter(
......@@ -38,7 +37,7 @@ class UserListTemplate(APIView):
'list of User found',
serializer.data
)
return self.get_paginated_response(message)
return self.get_paginated_response(message)
except Exception as e:
return Response(
......
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