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

fixing

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