mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 16:06:43 -06:00
Revert "dont include the item being deleted in the list of related items"
This reverts commit 298a7860b2
.
This commit is contained in:
parent
298a7860b2
commit
7c3caf5e39
@ -341,8 +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}")
|
|
||||||
|
|
||||||
|
|
||||||
# If this is an HTMX request, return only the rendered deletion form as modal content
|
# If this is an HTMX request, return only the rendered deletion form as modal content
|
||||||
|
Loading…
Reference in New Issue
Block a user