From 0cb7645b50a71f3b2fdedb14d320242022042957 Mon Sep 17 00:00:00 2001 From: Levi Date: Sun, 5 Jun 2016 15:49:51 -0500 Subject: [PATCH] #hotfix email after book vm --- hosting/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosting/views.py b/hosting/views.py index 9d9ba45d..17739155 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -275,9 +275,14 @@ class PaymentVMView(LoginRequiredMixin, FormView): # Send notification to ungleich as soon as VM has been booked # TODO send email using celery + context = { + 'vm': plan, + 'order': order + } email_data = { 'subject': 'New VM request', 'to': 'info@ungleich.ch', + 'context': context, 'template_name': 'new_booked_vm', 'template_path': 'emails/' }