Fix some errors
This commit is contained in:
		
					parent
					
						
							
								6d2b011925
							
						
					
				
			
			
				commit
				
					
						c9d01ba95f
					
				
			
		
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -15,6 +15,7 @@ from django.http import (
 | 
				
			||||||
    Http404, HttpResponseRedirect, HttpResponse, JsonResponse
 | 
					    Http404, HttpResponseRedirect, HttpResponse, JsonResponse
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
from django.shortcuts import redirect, render
 | 
					from django.shortcuts import redirect, render
 | 
				
			||||||
 | 
					from django.utils.html import escape
 | 
				
			||||||
from django.utils.http import urlsafe_base64_decode
 | 
					from django.utils.http import urlsafe_base64_decode
 | 
				
			||||||
from django.utils.safestring import mark_safe
 | 
					from django.utils.safestring import mark_safe
 | 
				
			||||||
from django.utils.translation import get_language, ugettext_lazy as _
 | 
					from django.utils.translation import get_language, ugettext_lazy as _
 | 
				
			||||||
| 
						 | 
					@ -1012,9 +1013,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView):
 | 
				
			||||||
                              ' back to the payment page.')
 | 
					                              ' back to the payment page.')
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    return HttpResponse(
 | 
					                    return JsonResponse(response)
 | 
				
			||||||
                        json.dumps(response), content_type="application/json"
 | 
					 | 
				
			||||||
                    )
 | 
					 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            card_id = request.session.get('card_id')
 | 
					            card_id = request.session.get('card_id')
 | 
				
			||||||
            user_card_detail = UserCardDetail.objects.get(id=card_id)
 | 
					            user_card_detail = UserCardDetail.objects.get(id=card_id)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue