Fix models.py
This commit is contained in:
parent
9d19e0e73c
commit
a8492491b9
@ -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:
|
||||
|
Reference in New Issue
Block a user