From 932ac06ceab59f7d1fc4ab23076b6974fb1bb9ea Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 1 Aug 2020 14:05:56 +0200 Subject: [PATCH] begin doc in views --- uncloud_pay/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uncloud_pay/views.py b/uncloud_pay/views.py index 1144b49..9ca3bcf 100644 --- a/uncloud_pay/views.py +++ b/uncloud_pay/views.py @@ -197,6 +197,9 @@ class BillViewSet(viewsets.ReadOnlyModelViewSet): @action(detail=True, methods=['get']) def download(self, *args, **kwargs): + """ + Allow to download + """ bill = self.get_object() output_file = NamedTemporaryFile() bill_html = render_to_string("bill.html.j2", {'bill': bill})