From 6c0dc8b6302e278104f65766682bc126c025d3df Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Thu, 7 Aug 2025 21:12:25 -0500 Subject: [PATCH] Correct mistake made on determination of whether it is a tag or not --- netbox/core/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/core/signals.py b/netbox/core/signals.py index 64aff1b65..e042255a7 100644 --- a/netbox/core/signals.py +++ b/netbox/core/signals.py @@ -75,7 +75,7 @@ def handle_changed_object(sender, instance, **kwargs): event_type = OBJECT_UPDATED elif kwargs.get('action') == 'post_clear': # Handle clearing of an M2M field - if isinstance(Tag, kwargs.get('model')) and getattr(instance, '_prechange_snapshot', {}).get('tags'): + if kwargs.get('model') == Tag and getattr(instance, '_prechange_snapshot', {}).get('tags'): # Handle generation of M2M changes for Tags which have a previous value (ignoring changes where the # prechange snapshot is empty) m2m_changed = True