mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Fixes #17098: Prevent automatic deletion of related notifications when deleting an object
This commit is contained in:
parent
d6773b6d86
commit
b3dfe8622d
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user