From a86cd9dfc6cb10386a3d5a45a33ea2264926cdea Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Tue, 5 Aug 2025 15:49:01 -0500 Subject: [PATCH] Clarify comment --- netbox/core/signals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/core/signals.py b/netbox/core/signals.py index 9f08c4e65..e5342dbf2 100644 --- a/netbox/core/signals.py +++ b/netbox/core/signals.py @@ -76,7 +76,8 @@ def handle_changed_object(sender, instance, **kwargs): 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'): - # Handle tags as it is a Generic M2M + # Handle generation of M2M changes for Tags which have a previous value (ignoring changes where the + # prechange snapshot is empty) m2m_changed = True event_type = OBJECT_UPDATED else: