Fix a bug -- json not imported; use JsonResponse instead of
HttpResponse
This commit is contained in:
parent
f1e021e1e9
commit
5eff54cffe
1 changed files with 1 additions and 4 deletions
|
@ -1266,10 +1266,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
||||||
["%s=%s" % (k, v) for (k, v) in admin_email_body.items()]),
|
["%s=%s" % (k, v) for (k, v) in admin_email_body.items()]),
|
||||||
}
|
}
|
||||||
send_plain_email_task.delay(email_to_admin_data)
|
send_plain_email_task.delay(email_to_admin_data)
|
||||||
return HttpResponse(
|
return JsonResponse(response)
|
||||||
json.dumps(response),
|
|
||||||
content_type="application/json"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class HostingBillListView(PermissionRequiredMixin, LoginRequiredMixin,
|
class HostingBillListView(PermissionRequiredMixin, LoginRequiredMixin,
|
||||||
|
|
Loading…
Reference in a new issue