From 63c7384e500eeabd1be14c38802ef807462023ce Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 15 Apr 2021 14:27:44 +0200 Subject: [PATCH] Don't call tobytes on bytes --- djangoldp_webpushnotification/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/djangoldp_webpushnotification/models.py b/djangoldp_webpushnotification/models.py index 47a418f..8e8268f 100644 --- a/djangoldp_webpushnotification/models.py +++ b/djangoldp_webpushnotification/models.py @@ -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