Fix contributing.md and fix quantity display on eticket

This commit is contained in:
2016-11-06 12:32:29 +01:00
parent d0cd8a8997
commit 160c7806df
3 changed files with 11 additions and 9 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, ''.join((user.get_display_name()," : ",str(self.object.quantity)," ",str(_("people(s)")))))
p.drawCentredString(10.5 * cm, 15 * cm, "%s : %d %s" % (user.get_display_name(), self.object.quantity, str(_("people(s)"))))
p.setFont("Courier-Bold", 14)
qrcode = QrCodeWidget(code)
bounds = qrcode.getBounds()