From 1ecf55f70cc71d2a25fd8d5cfd1cb4282a3b187e Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 14 May 2016 16:24:10 +0200 Subject: [PATCH] no quotes here --- shop/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/views.py b/shop/views.py index 1e58ea8a..1ffce3ca 100644 --- a/shop/views.py +++ b/shop/views.py @@ -25,7 +25,7 @@ class ShopIndexView(ListView): class ProductDetailView(LoginRequiredMixin, FormView): model = Product template_name = 'product_detail.html' - form_class = 'AddToOrderForm' + form_class = AddToOrderForm context_object_name = 'product' def get(self, request, *args, **kwargs): @@ -63,7 +63,7 @@ class CheckoutView(LoginRequiredMixin, FormView): """ model = Order template_name = 'checkout.html' - form_class='CheckoutForm' + form_class = CheckoutForm context_object_name = 'order' def get(self, request, *args, **kwargs):