I am writing an online store in Django. How do I redirect to the same page? This is needed to remove an item from the popup cart. The delete from cart function:
def cart_remove_retail(request, slug):
cart = Cart(request)
product = get_object_or_404(Product, slug=slug)
cart.remove(product)
return #???
when i try:
return HttpResponseRedirect(request.path_info)
I get round-robin query.
Thanks!