ceate excel for herd and livestock
This commit is contained in:
@@ -16,7 +16,7 @@ class LiveStockExcelViewSet(viewsets.ModelViewSet, ExcelDynamicSearchMixin):
|
|||||||
queryset = LiveStock.objects.all()
|
queryset = LiveStock.objects.all()
|
||||||
serializer_class = LiveStockSerializer
|
serializer_class = LiveStockSerializer
|
||||||
|
|
||||||
# noqa # دامداران
|
# noqa # دام ها
|
||||||
@action(
|
@action(
|
||||||
methods=['get'],
|
methods=['get'],
|
||||||
detail=False,
|
detail=False,
|
||||||
@@ -94,5 +94,3 @@ class LiveStockExcelViewSet(viewsets.ModelViewSet, ExcelDynamicSearchMixin):
|
|||||||
'utf-8')
|
'utf-8')
|
||||||
response.write(output.getvalue())
|
response.write(output.getvalue())
|
||||||
return response
|
return response
|
||||||
|
|
||||||
# noqa # دامداران
|
|
||||||
|
|||||||
Reference in New Issue
Block a user