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

Enable custom templating for webhook request content

This commit is contained in:
Jeremy Stretch
2020-02-24 16:12:46 -05:00
parent 81d001d49e
commit 99038ffc44
7 changed files with 87 additions and 41 deletions

View File

@@ -138,6 +138,8 @@ LOG_LEVEL_CODES = {
LOG_FAILURE: 'failure',
}
HTTP_CONTENT_TYPE_JSON = 'application/json'
# Models which support registered webhooks
WEBHOOK_MODELS = Q(
Q(app_label='circuits', model__in=[