Commit a086d461 authored by fnux's avatar fnux

Allow bill download from admin bill endpoint

parent ae2bad57
Pipeline #1399 failed with stage
in 3 minutes and 52 seconds
......@@ -284,7 +284,7 @@ class AdminPaymentViewSet(viewsets.ModelViewSet):
return Response(, status=status.HTTP_201_CREATED, headers=headers)
# Bills are generated from orders and should not be created or updated by hand.
class AdminBillViewSet(viewsets.ReadOnlyModelViewSet):
class AdminBillViewSet(BillViewSet):
serializer_class = BillSerializer
permission_classes = [permissions.IsAdminUser]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment