1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Render the payload_url of the Webhook with Jinja2

- Update markdown documentation
- Expand on the help text for the Webhook model
This commit is contained in:
Martin Rødvand
2022-01-12 21:58:19 +01:00
parent c8713d94d8
commit 5cbc978cad
3 changed files with 12 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ def process_webhook(webhook, model_name, event, data, snapshots, timestamp, user
# Prepare the HTTP request
params = {
'method': webhook.http_method,
'url': webhook.payload_url,
'url': webhook.render_payload_url(context),
'headers': headers,
'data': body.encode('utf8'),
}