add company code to organization serialzier

This commit is contained in:
2025-06-16 08:29:17 +03:30
parent d8ca9d2256
commit 8df059bee9
7 changed files with 41 additions and 7 deletions

View File

@@ -141,6 +141,11 @@ class UserViewSet(ModelViewSet):
else:
return Response(serializer.errors, status=status.HTTP_403_FORBIDDEN)
def destroy(self, request, *args, **kwargs):
instance = self.get_object()
self.perform_destroy(instance)
return Response(status=status.HTTP_204_NO_CONTENT)
@action(
methods=['get'],
detail=False,