mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-24 20:39:59 -06:00
Extend webhook create/update/delete tests
This commit is contained in:
@@ -60,6 +60,7 @@ def _handle_changed_object(request, webhook_queue, sender, instance, **kwargs):
|
||||
if m2m_changed and webhook_queue:
|
||||
# TODO: Need more validation here
|
||||
# TODO: Need to account for snapshot changes
|
||||
instance.refresh_from_db() # Ensure that we're working with fresh M2M assignments
|
||||
webhook_queue[-1]['data'] = serialize_for_webhook(instance)
|
||||
else:
|
||||
enqueue_object(webhook_queue, instance, request.user, request.id, action)
|
||||
|
||||
Reference in New Issue
Block a user