From a8492491b91e516be734851eb4f1a48f73af3592 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Wed, 7 Apr 2021 15:52:32 +0200 Subject: [PATCH] Fix models.py --- models.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/models.py b/models.py index b68ed10..401e686 100644 --- a/models.py +++ b/models.py @@ -1,7 +1,6 @@ -def send_request(target, object_iri, instance, created): - } - ActivityQueueService.send_activity(target, json) +from django.db import models + class VAPIDKeyset(models.Model): public_key = models.BinaryField(max_length=87) private_key = models.BinaryField(max_length=43) @@ -11,7 +10,3 @@ class VAPIDKeyset(models.Model): self.public_key.tobytes()[:10], self.private_key.tobytes()[:10] ) - -@receiver(post_save, sender=Notification) -def send_email_on_notification(sender, instance, created, **kwargs): - if created and instance.summary and getattr(settings,'JABBER_DEFAULT_HOST',False) and instance.user.email: