From 9ed2a099e78287e6a13671706e314d77aa21baa1 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Wed, 28 Jan 2026 11:59:10 +0330 Subject: [PATCH] import --> detail of tag distribution batch --- apps/tag/web/api/v1/api.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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,