Revert "dont include the item being deleted in the list of related items"

This reverts commit 298a7860b2.
This commit is contained in:
Jamie Murphy 2023-09-29 21:17:05 +01:00
parent 298a7860b2
commit 7c3caf5e39
No known key found for this signature in database
GPG Key ID: 10EDAE1E6D858F5F

View File

@ -341,8 +341,7 @@ class ObjectDeleteView(GetReturnURLMixin, BaseObjectView):
nested_objs = []
if 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