From 234b4027b094fbb45b8a99a41f22702933476556 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 14 Aug 2024 14:19:56 -0400 Subject: [PATCH] Fixes #17098: Prevent automatic deletion of related notifications when deleting an object --- netbox/netbox/models/features.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/netbox/netbox/models/features.py b/netbox/netbox/models/features.py index 15957b547..43eb089d6 100644 --- a/netbox/netbox/models/features.py +++ b/netbox/netbox/models/features.py @@ -382,11 +382,6 @@ class NotificationsMixin(models.Model): """ Enables support for user notifications. """ - notifications = GenericRelation( - to='extras.Notification', - content_type_field='object_type', - object_id_field='object_id' - ) subscriptions = GenericRelation( to='extras.Subscription', content_type_field='object_type',