finally fix qr code method

This commit is contained in:
Thomas Steen Rasmussen 2017-08-19 23:36:16 +02:00
parent 3581e4d32d
commit 7f017b416c

View file

@ -53,7 +53,7 @@ class BaseTicket(CreatedUpdatedModel, UUIDModel):
return qrcode_base64
def get_qr_code_url(self):
return 'data:image/png;base64,{}'.format(str(self.get_qr_code_base64()))
return 'data:image/png;base64,{}'.format(self.get_qr_code_base64().decode('utf-8'))
def generate_pdf(self):
return generate_pdf_letter(