refactor: return modules created
This commit is contained in:
parent
a4f095fb59
commit
7207d92d62
1 changed files with 4 additions and 1 deletions
|
|
@ -185,7 +185,10 @@ class ModuleIssueViewSet(BaseViewSet):
|
|||
batch_size=10,
|
||||
)
|
||||
|
||||
return Response({"message": "Success"}, status=status.HTTP_200_OK)
|
||||
return Response(
|
||||
ModuleIssueSerializer(self.get_queryset(), many=True).data,
|
||||
status=status.HTTP_200_OK,
|
||||
)
|
||||
except Module.DoesNotExist:
|
||||
return Response(
|
||||
{"error": "Module Does not exists"}, status=status.HTTP_400_BAD_REQUEST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue