Fix models.py

This commit is contained in:
3wc 2021-04-07 15:52:32 +02:00
parent 9d19e0e73c
commit a8492491b9
1 changed files with 2 additions and 7 deletions

View File

@ -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: