@login_required
def remove(request, cart_item_id):
    cart = get_object_or_404(Cart, pk=cart_item_id)
    cart.delete()
    return HttpResponseRedirect(request.META.get('HTTP_REFERER'))
@login_required
def remove(request, cart_item_id):
    cart = get_object_or_404(Cart, pk=cart_item_id)
    cart.delete()
    return HttpResponseRedirect(request.META.get('HTTP_REFERER'))