Aman Swarnkar
Results
1
issues of
Aman Swarnkar
class ViewCart(TemplateView): template_name = 'cart/view_cart.html' def get_context_data(self,request,**kwargs): context = super().get_context_data(request,**kwargs) try: the_id = request.session['cart_id'] except: the_id = None if the_id: cart = Cart.objects.get(id = the_id) context['cart'] = cart context['empty'] =...