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

Add http_method field to Webhook

This commit is contained in:
Jeremy Stretch
2020-02-24 20:42:24 -05:00
parent 9a532b1eb2
commit 211311be9f
5 changed files with 48 additions and 6 deletions

View File

@ -47,16 +47,24 @@ class WebhookAdmin(admin.ModelAdmin):
form = WebhookForm
fieldsets = (
(None, {
'fields': ('name', 'obj_type', 'enabled')
'fields': (
'name', 'obj_type', 'enabled',
)
}),
('Events', {
'fields': ('type_create', 'type_update', 'type_delete')
'fields': (
'type_create', 'type_update', 'type_delete',
)
}),
('HTTP Request', {
'fields': ('payload_url', 'http_content_type', 'additional_headers', 'body_template', 'secret')
'fields': (
'http_method', 'payload_url', 'http_content_type', 'additional_headers', 'body_template', 'secret',
)
}),
('SSL', {
'fields': ('ssl_verification', 'ca_file_path')
'fields': (
'ssl_verification', 'ca_file_path',
)
})
)