Add number of places on ebticket

This commit is contained in:
2016-11-03 16:32:44 +01:00
parent ea0eb89410
commit b6966c9502
3 changed files with 55 additions and 51 deletions

View File

@ -1058,7 +1058,7 @@ class EticketPDFView(CanViewMixin, DetailView):
p.setFont("Helvetica-Bold", 16)
p.drawCentredString(10.5 * cm, 22.6 * cm, eticket.event_date.strftime("%d %b %Y")) # FIXME with a locale
p.setFont("Helvetica-Bold", 14)
p.drawCentredString(10.5 * cm, 15 * cm, user.get_display_name())
p.drawCentredString(10.5 * cm, 15 * cm, ''.join((user.get_display_name()," : ",str(self.object.quantity)," ",str(_("people(s)")))))
p.setFont("Courier-Bold", 14)
qrcode = QrCodeWidget(code)
bounds = qrcode.getBounds()