From 8485819caaf54d342cd24f0dd98b0e40323edc98 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Wed, 26 Jul 2017 20:58:08 +0200 Subject: [PATCH] Removed unneeded code from datacenterlight/views.py --- datacenterlight/views.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 0c09d74e..57f7d32a 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -304,25 +304,6 @@ class WhyDataCenterLightView(IndexView): template_name = "datacenterlight/whydatacenterlight.html" model = BetaAccess - @cache_control(no_cache=True, must_revalidate=True, no_store=True) - def get(self, request, *args, **kwargs): - try: - manager = OpenNebulaManager() - templates = manager.get_templates() - context = { - 'templates': VirtualMachineTemplateSerializer(templates, many=True).data, - } - except: - messages.error( - request, - 'We have a temporary problem to connect to our backend. \ - Please try again in a few minutes' - ) - context = { - 'error': 'connection' - } - return render(request, self.template_name, context) - class PaymentOrderView(FormView): template_name = 'hosting/payment.html'