Skip to content
Snippets Groups Projects
Verified Commit 65e7c9a7 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

perf: depth 0

parent 08a8e9f8
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment