1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 04:36:48 +00:00

fix(admin): Removed VMs shows the host a VM left and confirms a delete

A tombstone kept the VM's name and UUID but not its compute, so the page
could not say where the VM had been. It now stores the compute's name (as
text: the compute may be the one deleted) and the list shows it; records
made before this have no host. Deleting a record says so, and the admin
tables use scope="col" instead of the invalid span="col".

Closes #217
This commit is contained in:
catborise 2026-10-26 11:23:44 +03:00
parent f7279610a8
commit 6c2704f97d
9 changed files with 47 additions and 19 deletions

View file

@ -338,6 +338,7 @@ def tombstone_delete(request, pk):
if request.method == "POST":
with audit(request, None, f"Removed VM {tombstone.name} ({tombstone.uuid})", "delete"):
tombstone.delete()
messages.success(request, _("Removed VM %(name)s deleted") % {"name": tombstone.name})
return redirect("admin:tombstone_list")
return render(