mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 16:18:03 +01:00
Remove harmful caching
This commit is contained in:
parent
3899e2a3db
commit
ef7f470477
1 changed files with 0 additions and 2 deletions
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue