import --> detail of tag distribution batch
This commit is contained in:
@@ -539,6 +539,15 @@ class TagDistributionBatchViewSet(
|
|||||||
return self.get_paginated_response(serializer.data)
|
return self.get_paginated_response(serializer.data)
|
||||||
return Response(self.serializer_class(queryset).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(
|
@action(
|
||||||
methods=['post'],
|
methods=['post'],
|
||||||
detail=True,
|
detail=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user