diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 4425bd57801f34b3b13a397f2ffe6ac924117fe4..fa65eafffe6190b1790d7d2a4d77c8a3fe808faf 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -147,7 +147,7 @@ def create_nested_subscribers(sender, instance, created, **kwargs): @receiver(post_delete, dispatch_uid="delete_callback_notif") @receiver(m2m_changed, dispatch_uid="m2m_callback_notif") def notify(sender, instance, created=None, model=None, pk_set=set(), action='', **kwargs): - if type(instance).__name__ not in ["ScheduledActivity", "LogEntry", "Activity"] and sender != Notification \ + if type(instance).__name__ not in ["ScheduledActivity", "LogEntry", "Activity", "Migration"] and sender != Notification \ and action not in ['pre_add', 'pre_remove']: if action or created is False: request_type = 'update' #M2M change or post_save