diff --git a/games/templates/partials/refund_purchase_confirmation.html b/games/templates/partials/refund_purchase_confirmation.html index cd3afb1..bf8ed4b 100644 --- a/games/templates/partials/refund_purchase_confirmation.html +++ b/games/templates/partials/refund_purchase_confirmation.html @@ -7,12 +7,9 @@

{% csrf_token %} -
- -
+

+ Games will be marked as abandoned. +

Refund Cancel diff --git a/games/views/purchase.py b/games/views/purchase.py index add7a75..78aa53d 100644 --- a/games/views/purchase.py +++ b/games/views/purchase.py @@ -212,10 +212,9 @@ def refund_purchase_confirmation( def refund_purchase(request: HttpRequest, purchase_id: int) -> HttpResponse: purchase = get_object_or_404(Purchase, id=purchase_id) - if request.POST.get("set_abandoned"): - for game in purchase.games.all(): - game.status = Game.Status.ABANDONED - game.save() + for game in purchase.games.all(): + game.status = Game.Status.ABANDONED + game.save() purchase.refund()