Don't call tobytes on bytes

This commit is contained in:
decentral1se
2021-04-15 14:27:44 +02:00
parent aaf365dba2
commit 63c7384e50

@ -9,8 +9,7 @@ class VAPIDKeyset(models.Model):
def __str__(self):
return "public_key:{}... private_key:{}...".format(
self.public_key[:10],
self.private_key.tobytes()[:10]
self.public_key[:10], self.private_key[:10]
)
@property