From 65b6465b40b51f4ea839c39cd1cd7179c7e0bf1d Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 14 May 2016 16:34:06 +0200 Subject: [PATCH] forgot to return a response --- shop/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shop/views.py b/shop/views.py index 9a6317a4..2883d2e6 100644 --- a/shop/views.py +++ b/shop/views.py @@ -30,6 +30,7 @@ class ProductDetailView(LoginRequiredMixin, FormView): def get(self, request, *args, **kwargs): self.product = Product.objects.get(pk=kwargs.get('pk')) + return self.render_to_response(self.get_context_data()) def form_valid(self, form): ### do we have an open order?