diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 06792a282c6c6fcc85900cd3d7fc15b0c3f7fe78..3f6b49ade64acf5ecebc2d93d33d5612883514c1 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -54,7 +54,7 @@ class Subscription(Model): # --- SUBSCRIPTION SYSTEM --- @receiver(post_save, dispatch_uid="callback_notif") def send_notification(sender, instance, **kwargs): - if (sender != Notification and sender != LogEntry and sender != Session and sender != Token): + if sender != Notification and isinstance(sender, Model): threads = [] url = settings.BASE_URL + Model.resource_id(instance) + '/' for subscription in Subscription.objects.filter(object=url):