Don't call tobytes on bytes
This commit is contained in:
parent
aaf365dba2
commit
63c7384e50
@ -9,8 +9,7 @@ class VAPIDKeyset(models.Model):
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "public_key:{}... private_key:{}...".format(
|
return "public_key:{}... private_key:{}...".format(
|
||||||
self.public_key[:10],
|
self.public_key[:10], self.private_key[:10]
|
||||||
self.private_key.tobytes()[:10]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user