diff --git a/core/static/core/img/partners.png b/core/static/core/img/partners.png new file mode 100644 index 00000000..93f9a0f6 Binary files /dev/null and b/core/static/core/img/partners.png differ diff --git a/counter/views.py b/counter/views.py index de6b0da6..5d1c5f34 100644 --- a/counter/views.py +++ b/counter/views.py @@ -1092,6 +1092,13 @@ class EticketPDFView(CanViewMixin, DetailView): renderPDF.draw(d, p, 10.5 * cm - 130, 6.1 * cm) p.drawCentredString(10.5 * cm, 6 * cm, code) + partners = ImageReader("core/static/core/img/partners.png") + width, height = partners.getSize() + size = max(width, height) + width = width * 2 / 3 + height = height * 2 / 3 + p.drawImage(partners, 0 * cm, 0 * cm, width, height) + p.showPage() p.save() return response