Begin to include bill output

This commit is contained in:
Nico Schottelius 2020-04-03 18:41:17 +02:00
commit c44faa7a73
18 changed files with 1551 additions and 1 deletions

View file

@ -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'))