Added encode method for ugettext_lazy strings
This commit is contained in:
		
					parent
					
						
							
								40f13784ac
							
						
					
				
			
			
				commit
				
					
						c9fd741c89
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -770,10 +770,10 @@ class OrdersHostingDetailView(LoginRequiredMixin,
 | 
				
			||||||
        response = {
 | 
					        response = {
 | 
				
			||||||
            'status': True,
 | 
					            'status': True,
 | 
				
			||||||
            'redirect': reverse('hosting:virtual_machines'),
 | 
					            'redirect': reverse('hosting:virtual_machines'),
 | 
				
			||||||
            'msg_title': _('Thank you for the order.'),
 | 
					            'msg_title': _('Thank you for the order.').encode('utf-8'),
 | 
				
			||||||
            'msg_body': _('Your VM will be up and running in a few moments.'
 | 
					            'msg_body': _('Your VM will be up and running in a few moments.'
 | 
				
			||||||
                          ' We will send you a confirmation email as soon as'
 | 
					                          ' We will send you a confirmation email as soon as'
 | 
				
			||||||
                          ' it is ready.')
 | 
					                          ' it is ready.').encode('utf-8')
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return HttpResponse(json.dumps(response),
 | 
					        return HttpResponse(json.dumps(response),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue