Removed unneeded code from datacenterlight/views.py
This commit is contained in:
		
					parent
					
						
							
								1f58da70d4
							
						
					
				
			
			
				commit
				
					
						8485819caa
					
				
			
		
					 1 changed files with 0 additions and 19 deletions
				
			
		| 
						 | 
					@ -304,25 +304,6 @@ class WhyDataCenterLightView(IndexView):
 | 
				
			||||||
    template_name = "datacenterlight/whydatacenterlight.html"
 | 
					    template_name = "datacenterlight/whydatacenterlight.html"
 | 
				
			||||||
    model = BetaAccess
 | 
					    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):
 | 
					class PaymentOrderView(FormView):
 | 
				
			||||||
    template_name = 'hosting/payment.html'
 | 
					    template_name = 'hosting/payment.html'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue