1. Kai Diefenbach
  2. django-lfs-0.6


Kai Diefenbach  committed 82ebc04

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

  • Participants
  • Parent commits c66ae6a
  • Branches default

Comments (0)

Files changed (1)

File lfs/cart/views.py

View file
     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()