Fix models.py

This commit is contained in:
3wc 2021-04-07 15:52:32 +02:00
parent 9d19e0e73c
commit a8492491b9

View File

@ -1,6 +1,5 @@
def send_request(target, object_iri, instance, created): from django.db import models
}
ActivityQueueService.send_activity(target, json)
class VAPIDKeyset(models.Model): class VAPIDKeyset(models.Model):
public_key = models.BinaryField(max_length=87) public_key = models.BinaryField(max_length=87)
@ -11,7 +10,3 @@ class VAPIDKeyset(models.Model):
self.public_key.tobytes()[:10], self.public_key.tobytes()[:10],
self.private_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: