@login_required
@enforce_shopping_cart_enabled
def reset_code_redemption(request):
 cart = Order.get_cart_for_user(request.user)
 cart.reset_cart_items_prices()
 CouponRedemption.remove_coupon_redemption_from_cart(request.user, cart)
 return HttpResponse('reset')

@ login_required @ enforce_shopping_cart_enabled def reset_code_redemption ( request ) : cart = Order . get_cart_for_user ( request . user ) cart . reset_cart_items_prices ( ) CouponRedemption . remove_coupon_redemption_from_cart ( request . user , cart ) return HttpResponse ( 'reset' )
this method reset the code redemption from user cart items .