diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 7f8b4caa052ed7fce5b309d41d20a8c129d4a577..bb28c477e081412120b2a5f5fdc6294fc9e2045d 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -74,8 +74,8 @@ def send_request(target, object_iri): @receiver(post_save, sender=Notification) -def send_email_on_notification(sender, instance, **kwargs): - if instance.summary and settings.JABBER_DEFAULT_HOST and instance.user.email: +def send_email_on_notification(sender, instance, created, **kwargs): + if created and instance.summary and settings.JABBER_DEFAULT_HOST and instance.user.email: html_message = loader.render_to_string( 'email.html', {