From 2628312bb9676382eb20aa7967a3324638335ec7 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 20 Dec 2017 22:26:36 +0100 Subject: [PATCH] Fix a bug and update delete vm email subject --- hosting/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosting/views.py b/hosting/views.py index 42051049..e1231dc5 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1150,14 +1150,14 @@ class VirtualMachineView(LoginRequiredMixin, View): email.send() admin_email_body.update(response) email_to_admin_data = { - 'subject': "Deleted Subscription for VM: {vm_id} and " + 'subject': "Deleted VM and Subscription for VM {vm_id} and " "user: {user}".format( vm_id=vm.id, user=owner.email ), 'from_email': settings.DCL_SUPPORT_FROM_ADDRESS, 'to': ['info@ungleich.ch'], 'body': "\n".join( - ["%s=%s" % (k, v) for (k, v) in admin_email_body]), + ["%s=%s" % (k, v) for (k, v) in admin_email_body.items()]), } send_plain_email_task.delay(email_to_admin_data) return HttpResponse(