Allow bill download from admin bill endpoint
This commit is contained in:
parent
ae2bad5754
commit
a086d46136
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ class AdminPaymentViewSet(viewsets.ModelViewSet):
|
|||
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.
|
||||
class AdminBillViewSet(viewsets.ReadOnlyModelViewSet):
|
||||
class AdminBillViewSet(BillViewSet):
|
||||
serializer_class = BillSerializer
|
||||
permission_classes = [permissions.IsAdminUser]
|
||||
|
||||
|
|
Loading…
Reference in a new issue