forked from uncloud/uncloud
Begin to include bill output
This commit is contained in:
parent
fa0ca2d9c1
commit
c44faa7a73
18 changed files with 1551 additions and 1 deletions
|
|
@ -148,3 +148,12 @@ class AdminOrderViewSet(viewsets.ModelViewSet):
|
|||
|
||||
def get_queryset(self):
|
||||
return Order.objects.all()
|
||||
|
||||
# PDF tests
|
||||
from django.views.generic import TemplateView
|
||||
from hardcopy.views import PDFViewMixin, PNGViewMixin
|
||||
|
||||
class MyPDFView(PDFViewMixin, TemplateView):
|
||||
template_name = "bill.html"
|
||||
# def get_filename(self):
|
||||
# return "my_file_{}.pdf".format(now().strftime('Y-m-d'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue