From 0fdbd1f3b2972d7fed0d5d965ac7f823213bd50d Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Thu, 15 Apr 2021 18:57:05 +0200 Subject: [PATCH] Fix TypeError rendering VAPIDKeyset.public_key --- djangoldp_webpushnotification/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoldp_webpushnotification/models.py b/djangoldp_webpushnotification/models.py index 32788cd..87b62c8 100644 --- a/djangoldp_webpushnotification/models.py +++ b/djangoldp_webpushnotification/models.py @@ -14,7 +14,7 @@ class VAPIDKeyset(models.Model): @property def public_key(self): - key_str = self.private_key + key_str = self.private_key.tobytes() padding = len(key_str) % 4 key_str += b"=" * padding key = SigningKey.from_string(