Skip to content

Commit

Permalink
Fixes #17098: Prevent automatic deletion of related notifications whe…
Browse files Browse the repository at this point in the history
…n deleting an object
  • Loading branch information
jeremystretch committed Aug 14, 2024
1 parent c6c0ab2 commit 6c359df
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions netbox/netbox/models/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6c359df

Please sign in to comment.