This commit is contained in:
Jamie Murphy 2023-10-22 15:40:15 +01:00
parent 413824934c
commit cdae6c2d94
No known key found for this signature in database
GPG Key ID: 10EDAE1E6D858F5F

View File

@ -341,7 +341,7 @@ class ObjectDeleteView(GetReturnURLMixin, BaseObjectView):
related_objects = {} related_objects = {}
for model, instance in collector.instances_with_model(): for model, instance in collector.instances_with_model():
# we could ignore the instance == obj so that the list doesnt contain itself... # we could ignore the instance == obj so that the list doesnt contain itself...
if not model.__name__ in related_objects: if model.__name__ not in related_objects:
related_objects[model.__name__] = [] related_objects[model.__name__] = []
related_objects[model.__name__].append(instance) related_objects[model.__name__].append(instance)