Commit 93e51776 authored by Skia's avatar Skia

Merge branch 'eticketUpdate' into 'master'

partners banner added

See merge request !33
parents 5a305354 4a5d789d
Pipeline #716 passed with stage
in 3 minutes and 11 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment