mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Fix serialization of tags upon object deletion
This commit is contained in:
parent
f5f9cd478b
commit
22e9733a0f
@ -46,7 +46,7 @@ def handle_deleted_object(sender, instance, **kwargs):
|
|||||||
|
|
||||||
# Preserve tags
|
# Preserve tags
|
||||||
if is_taggable(instance):
|
if is_taggable(instance):
|
||||||
copy.tags = DummyQuerySet(instance.tags.all())
|
copy.tags = list(instance.tags.all())
|
||||||
|
|
||||||
# Queue the copy of the object for processing once the request completes
|
# Queue the copy of the object for processing once the request completes
|
||||||
_thread_locals.changed_objects.append(
|
_thread_locals.changed_objects.append(
|
||||||
|
Loading…
Reference in New Issue
Block a user