From a086d46136ccbe6cb8e2cedbb285db47ce11b483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Thu, 7 May 2020 15:45:04 +0200 Subject: [PATCH] Allow bill download from admin bill endpoint --- uncloud_pay/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncloud_pay/views.py b/uncloud_pay/views.py index 05a2106..55f1940 100644 --- a/uncloud_pay/views.py +++ b/uncloud_pay/views.py @@ -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]