more network UI cleanup (whoops)

This commit is contained in:
Ryan Petrello 2018-07-31 14:53:11 -04:00
parent 9cdee4f75c
commit 8e3b72e1e5
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -564,9 +564,6 @@ def delete_inventory(self, inventory_id, user_id):
i = Inventory.objects.get(id=inventory_id)
for host in i.hosts.iterator():
host.job_events_as_primary_host.update(host=None)
for topology_rel in i.topologyinventory_set.iterator():
topology_rel.topology.delete()
topology_rel.delete()
i.delete()
emit_channel_notification(
'inventories-status_changed',