mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
fix type_delete webhooks after refactor
This commit is contained in:
parent
2216758e43
commit
fad7fd731c
@ -62,9 +62,8 @@ class ChangeLoggingAndWebhookMiddleware(object):
|
|||||||
|
|
||||||
# Perform change logging and fire Webhook signals
|
# Perform change logging and fire Webhook signals
|
||||||
for obj, action in _thread_locals.changed_objects:
|
for obj, action in _thread_locals.changed_objects:
|
||||||
if obj.pk:
|
|
||||||
# Log object changes
|
# Log object changes
|
||||||
if hasattr(obj, 'log_change'):
|
if obj.pk and hasattr(obj, 'log_change'):
|
||||||
obj.log_change(request.user, request.id, action)
|
obj.log_change(request.user, request.id, action)
|
||||||
|
|
||||||
# Enqueue Webhooks if they are enabled
|
# Enqueue Webhooks if they are enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user