forgot to return a response

This commit is contained in:
Thomas Steen Rasmussen 2016-05-14 16:34:06 +02:00
parent d2fae2480a
commit 65b6465b40

View file

@ -30,6 +30,7 @@ class ProductDetailView(LoginRequiredMixin, FormView):
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
self.product = Product.objects.get(pk=kwargs.get('pk')) self.product = Product.objects.get(pk=kwargs.get('pk'))
return self.render_to_response(self.get_context_data())
def form_valid(self, form): def form_valid(self, form):
### do we have an open order? ### do we have an open order?