From 26e471ef2a30a29926da7a44f2d1cae37242efda Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 3 Aug 2020 23:59:53 +0200 Subject: [PATCH] only allow the order review view for unpaid orders, fixes #571 --- src/shop/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shop/views.py b/src/shop/views.py index 315e0032..5968ab58 100644 --- a/src/shop/views.py +++ b/src/shop/views.py @@ -350,6 +350,7 @@ class OrderReviewAndPayView( LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureOrderHasProductsMixin, + EnsureUnpaidOrderMixin, EnsureOrderIsNotCancelledMixin, DetailView, ):