mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
ObjectChange.action to slug (#3569)
This commit is contained in:
@@ -15,7 +15,7 @@ def process_webhook(webhook, data, model_name, event, timestamp, username, reque
|
||||
Make a POST request to the defined Webhook
|
||||
"""
|
||||
payload = {
|
||||
'event': dict(OBJECTCHANGE_ACTION_CHOICES)[event].lower(),
|
||||
'event': event,
|
||||
'timestamp': timestamp,
|
||||
'model': model_name,
|
||||
'username': username,
|
||||
|
Reference in New Issue
Block a user