From 3581e4d32d91031038e65c9b6540c710475fa755 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 19 Aug 2017 23:30:25 +0200 Subject: [PATCH] str() please --- src/tickets/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tickets/models.py b/src/tickets/models.py index b57c689e..aa7763ab 100644 --- a/src/tickets/models.py +++ b/src/tickets/models.py @@ -53,7 +53,7 @@ class BaseTicket(CreatedUpdatedModel, UUIDModel): return qrcode_base64 def get_qr_code_url(self): - return 'data:image/png;base64,{}'.format(self.get_qr_code_base64()) + return 'data:image/png;base64,{}'.format(str(self.get_qr_code_base64())) def generate_pdf(self): return generate_pdf_letter(