ソースを参照

Fixes #17098: Prevent automatic deletion of related notifications when deleting an object

Jeremy Stretch 1 年間 前
コミット
234b4027b0
1 ファイル変更0 行追加5 行削除
  1. 0 5
      netbox/netbox/models/features.py

+ 0 - 5
netbox/netbox/models/features.py

@@ -382,11 +382,6 @@ class NotificationsMixin(models.Model):
     """
     """
     Enables support for user notifications.
     Enables support for user notifications.
     """
     """
-    notifications = GenericRelation(
-        to='extras.Notification',
-        content_type_field='object_type',
-        object_id_field='object_id'
-    )
     subscriptions = GenericRelation(
     subscriptions = GenericRelation(
         to='extras.Subscription',
         to='extras.Subscription',
         content_type_field='object_type',
         content_type_field='object_type',