Fixes #17097: Record static object representation when calling NotificationGroup.notify() (#17161)

* Fixes #17097: Record static object representation when calling NotificationGroup.notify()

* Redirect to notifications list when marking as read notifications for deleted objects

* Link to object in notifications dropdown only for non-destructive events
This commit is contained in:
Jeremy Stretch
2024-08-15 12:04:19 -04:00
committed by GitHub
parent b6071a80d9
commit dd3166a4ed
3 changed files with 12 additions and 2 deletions

View File

@@ -139,6 +139,7 @@ def process_event_rules(event_rules, object_type, event_type, data, username=Non
event_rule.action_object.notify(
object_type=object_type,
object_id=data['id'],
object_repr=data.get('display'),
event_type=event_type
)