From 10d344f6f8ce2c4ee4c8abc27d5b5704dada9c0e Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Thu, 12 May 2016 10:01:26 +0200 Subject: [PATCH] forgot to push a few things before --- shop/forms.py | 2 +- shop/views.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shop/forms.py b/shop/forms.py index d3442c84..3174a955 100644 --- a/shop/forms.py +++ b/shop/forms.py @@ -1,6 +1,6 @@ from django import forms -class CheckoutForm(forms.ModelForm): +class PaymentMethodForm(forms.ModelForm): class Meta: model = Order fields = ['payment_method'] diff --git a/shop/views.py b/shop/views.py index 8c977e99..2b97d700 100644 --- a/shop/views.py +++ b/shop/views.py @@ -27,7 +27,8 @@ class ProductDetailView(LoginRequiredMixin, DetailView): class CheckoutView(LoginRequiredMixin, DetailView): """ - Shows the products contained in an order, and a button to go to the payment + Shows a summary of all products contained in an order, + total price, VAT, and a button to go to the payment """ model = Order template_name = 'shop/order_detail.html'