Commits

Kai Diefenbach committed 82ebc04

Changed add_to_cart: don't use is_deliverable for raising HTTP404 (only deliverable)

  • Participants
  • Parent commits c66ae6a

Comments (0)

Files changed (1)

lfs/cart/views.py

     product = lfs_get_object_or_404(Product, pk=product_id)
 
     # Only active and deliverable products can be added to the cart.
-    if (product.is_active() and product.is_deliverable()) == False:
+    if (product.is_active() and product.deliverable) == False:
         raise Http404()
 
     try: