remove unneeded line

This commit is contained in:
Thomas Steen Rasmussen 2016-05-13 08:44:31 +02:00
parent 1f67035740
commit 55dfa457d2

View file

@ -40,7 +40,6 @@ class ProductDetailView(LoginRequiredMixin, FormView):
order = Order.objects.create(user=request.user)
### get product from kwargs
product = Product.objects.get(id=
if self.product in order.products.all():
### this product is already added to this order, increase count by one
OrderProductRelation.objects.filter(product=self.product, order=order).update(quantity=F('quantity') + 1)