From ef7f47047738034de7933cd36aa482f42d2d5fb3 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 25 Sep 2022 21:11:30 +0200 Subject: [PATCH] Remove harmful caching --- src/purchase/views/basket.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/purchase/views/basket.py b/src/purchase/views/basket.py index 2532427..f44dbf8 100644 --- a/src/purchase/views/basket.py +++ b/src/purchase/views/basket.py @@ -14,7 +14,6 @@ from purchase.views.reports import reports_etag @require_http_methods(["GET", "POST"]) @permission_required("purchase.add_basket") -@condition(etag_func=reports_etag) def new_basket(request: HttpRequest) -> HttpResponse: if request.method == "POST": form = BasketForm(request.POST) @@ -34,7 +33,6 @@ def new_basket(request: HttpRequest) -> HttpResponse: @require_http_methods(["GET", "POST"]) @permission_required("purchase.change_basket") -@condition(etag_func=reports_etag) def update_basket(request: HttpRequest, pk: int) -> HttpResponse: basket = get_object_or_404(Basket.objects.priced(), pk=pk) if request.method == "POST":