encode string as utf-8 before hashing
This commit is contained in:
parent
0ebd683e02
commit
9461f4da22
|
@ -456,7 +456,7 @@ class Ticket(CreatedUpdatedModel, UUIDModel):
|
||||||
ticket_id=self.pk,
|
ticket_id=self.pk,
|
||||||
user_id=self.order.user.pk,
|
user_id=self.order.user.pk,
|
||||||
secret_key=settings.SECRET_KEY,
|
secret_key=settings.SECRET_KEY,
|
||||||
)
|
).encode('utf-8')
|
||||||
).hexdigest()
|
).hexdigest()
|
||||||
|
|
||||||
def get_qr_code(self):
|
def get_qr_code(self):
|
||||||
|
|
Loading…
Reference in a new issue