Allow bill download from admin bill endpoint

This commit is contained in:
fnux 2020-05-07 15:45:04 +02:00
parent ae2bad5754
commit a086d46136

View file

@ -284,7 +284,7 @@ class AdminPaymentViewSet(viewsets.ModelViewSet):
return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers) return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
# Bills are generated from orders and should not be created or updated by hand. # Bills are generated from orders and should not be created or updated by hand.
class AdminBillViewSet(viewsets.ReadOnlyModelViewSet): class AdminBillViewSet(BillViewSet):
serializer_class = BillSerializer serializer_class = BillSerializer
permission_classes = [permissions.IsAdminUser] permission_classes = [permissions.IsAdminUser]