encode string as utf-8 before hashing

This commit is contained in:
Stephan Telling 2017-02-20 20:07:58 +01:00
parent 0ebd683e02
commit 9461f4da22
No known key found for this signature in database
GPG key ID: C07DFD6208200C9D

View file

@ -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):