diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 066cb06..2a2d669 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -150,6 +150,9 @@ def send_notification(sender, instance, **kwargs): # I may have configured to send the subscription to a foreign key if subscription.field is not None and len(subscription.field) > 1: try: + if kwargs.get("created"): + continue + instance = getattr(instance, subscription.field, instance) # don't send notifications for foreign resources