mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
dont include the item being deleted in the list of related items
This commit is contained in:
parent
1063db9470
commit
298a7860b2
@ -341,6 +341,7 @@ class ObjectDeleteView(GetReturnURLMixin, BaseObjectView):
|
|||||||
nested_objs = []
|
nested_objs = []
|
||||||
if collector.instances_with_model():
|
if collector.instances_with_model():
|
||||||
for model, instance in collector.instances_with_model():
|
for model, instance in collector.instances_with_model():
|
||||||
|
if not instance == obj:
|
||||||
nested_objs.append(f"{model.__name__} - {instance}")
|
nested_objs.append(f"{model.__name__} - {instance}")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user