diff --git a/apps/tag/web/api/v1/api.py b/apps/tag/web/api/v1/api.py index 22c3452..933d666 100644 --- a/apps/tag/web/api/v1/api.py +++ b/apps/tag/web/api/v1/api.py @@ -539,6 +539,15 @@ class TagDistributionBatchViewSet( return self.get_paginated_response(serializer.data) return Response(self.serializer_class(queryset).data) + def retrieve(self, request, pk=None, *args, **kwargs): + """ + detail of distribution batch + """ + + distribution_batch = self.get_object() + serializer = self.serializer_class(distribution_batch) + return Response(serializer.data, status=status.HTTP_200_OK) + @action( methods=['post'], detail=True,