bugfix: disable permissions while not fixed
This commit is contained in:
parent
69bdfb2ca6
commit
615f36b551
@ -27,7 +27,7 @@ class Notification(Model):
|
|||||||
unread = models.BooleanField(default=True)
|
unread = models.BooleanField(default=True)
|
||||||
|
|
||||||
class Meta(Model.Meta):
|
class Meta(Model.Meta):
|
||||||
permission_classes = [InboxPermissions]
|
#permission_classes = [InboxPermissions]
|
||||||
ordering = ['date']
|
ordering = ['date']
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
@ -73,4 +73,4 @@ def send_request(target, object_iri):
|
|||||||
@receiver(post_save, sender=Notification)
|
@receiver(post_save, sender=Notification)
|
||||||
def send_email_on_notification(sender, instance, **kwargs):
|
def send_email_on_notification(sender, instance, **kwargs):
|
||||||
send_mail('Notification on staging.happy-dev.fr', instance.summary, 'from@example.com', [instance.user.email],
|
send_mail('Notification on staging.happy-dev.fr', instance.summary, 'from@example.com', [instance.user.email],
|
||||||
fail_silently=False)
|
fail_silently=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user