diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 8cd41188a7509fe2190e05a22444440e9cde1567..7f8b4caa052ed7fce5b309d41d20a8c129d4a577 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -30,6 +30,7 @@ class Notification(Model): class Meta(Model.Meta): #permission_classes = [InboxPermissions] + depth = 0 ordering = ['date'] def __str__(self): @@ -88,7 +89,7 @@ def send_email_on_notification(sender, instance, **kwargs): instance.summary, settings.EMAIL_HOST_USER or "noreply@" + settings.JABBER_DEFAULT_HOST, [instance.user.email], - fail_silently=False, + fail_silently=True, html_message=html_message ) else: