Closes #20029: Add object_type to webhook data

This commit is contained in:
Jeremy Stretch 2025-08-07 16:38:06 -04:00
parent 37d6c160b9
commit a19beae9e0

View File

@ -51,6 +51,7 @@ def send_webhook(event_rule, object_type, event_type, data, timestamp, username,
context = {
'event': WEBHOOK_EVENT_TYPES.get(event_type, event_type),
'timestamp': timestamp,
'object_type': '.'.join(object_type.natural_key()),
'model': object_type.model,
'username': username,
'request_id': request.id if request else None,