Commits

Kai Diefenbach  committed f348458 Merge

Merged

  • Participants
  • Parent commits d3ec385, ee53a9d

Comments (0)

Files changed (1)

File lfs/catalog/views.py

         return add_to_cart(request)
     else:
         product_id = request.POST.get("product_id")
-        product = Product.objects.get(pk=product_id)
+        product = lfs_get_object_or_404(Product, pk=product_id)
 
         options = lfs_utils.parse_properties(request)
         variant = product.get_variant(options)