From 9461f4da229777aa72a7c1c83903907df31e5f1e Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Mon, 20 Feb 2017 20:07:58 +0100 Subject: [PATCH] encode string as utf-8 before hashing --- src/shop/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shop/models.py b/src/shop/models.py index 3caa6a98..a262896f 100644 --- a/src/shop/models.py +++ b/src/shop/models.py @@ -456,7 +456,7 @@ class Ticket(CreatedUpdatedModel, UUIDModel): ticket_id=self.pk, user_id=self.order.user.pk, secret_key=settings.SECRET_KEY, - ) + ).encode('utf-8') ).hexdigest() def get_qr_code(self):