mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 07:56:44 -06:00
linting
This commit is contained in:
parent
413824934c
commit
cdae6c2d94
@ -341,7 +341,7 @@ class ObjectDeleteView(GetReturnURLMixin, BaseObjectView):
|
||||
related_objects = {}
|
||||
for model, instance in collector.instances_with_model():
|
||||
# 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__].append(instance)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user