Remove harmful caching

This commit is contained in:
Gabriel Augendre 2022-09-25 21:11:30 +02:00
parent 3899e2a3db
commit ef7f470477

View file

@ -14,7 +14,6 @@ from purchase.views.reports import reports_etag
@require_http_methods(["GET", "POST"]) @require_http_methods(["GET", "POST"])
@permission_required("purchase.add_basket") @permission_required("purchase.add_basket")
@condition(etag_func=reports_etag)
def new_basket(request: HttpRequest) -> HttpResponse: def new_basket(request: HttpRequest) -> HttpResponse:
if request.method == "POST": if request.method == "POST":
form = BasketForm(request.POST) form = BasketForm(request.POST)
@ -34,7 +33,6 @@ def new_basket(request: HttpRequest) -> HttpResponse:
@require_http_methods(["GET", "POST"]) @require_http_methods(["GET", "POST"])
@permission_required("purchase.change_basket") @permission_required("purchase.change_basket")
@condition(etag_func=reports_etag)
def update_basket(request: HttpRequest, pk: int) -> HttpResponse: def update_basket(request: HttpRequest, pk: int) -> HttpResponse:
basket = get_object_or_404(Basket.objects.priced(), pk=pk) basket = get_object_or_404(Basket.objects.priced(), pk=pk)
if request.method == "POST": if request.method == "POST":