bugfix: disable permissions while not fixed

This commit is contained in:
Matthieu Fesselier 2019-05-10 16:17:44 +08:00
parent 69bdfb2ca6
commit 615f36b551

View File

@ -27,7 +27,7 @@ class Notification(Model):
unread = models.BooleanField(default=True)
class Meta(Model.Meta):
permission_classes = [InboxPermissions]
#permission_classes = [InboxPermissions]
ordering = ['date']
def __str__(self):
@ -73,4 +73,4 @@ def send_request(target, object_iri):
@receiver(post_save, sender=Notification)
def send_email_on_notification(sender, instance, **kwargs):
send_mail('Notification on staging.happy-dev.fr', instance.summary, 'from@example.com', [instance.user.email],
fail_silently=False)
fail_silently=True)