From 447cf0d909363e28d68e3e6d687d8a083daf000e Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 14 May 2016 16:28:54 +0200 Subject: [PATCH] typo==fail --- shop/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/views.py b/shop/views.py index 1ffce3ca..41bf9077 100644 --- a/shop/views.py +++ b/shop/views.py @@ -29,7 +29,7 @@ class ProductDetailView(LoginRequiredMixin, FormView): context_object_name = 'product' def get(self, request, *args, **kwargs): - self.product == Product.objects.get(id=kwargs.get('product_id')) + self.product = Product.objects.get(id=kwargs.get('product_id')) def form_valid(self, form): ### do we have an open order?