Returning None, None instead of None, 0 makes much more sense
@@ -141,11 +141,11 @@ class AbstractBasket(models.Model):
with the respect to basket quantity threshold.
"""
basket_threshold = settings.OSCAR_MAX_BASKET_QUANTITY_THRESHOLD
- max_allowed = 0
if basket_threshold:
total_basket_quantity = self.num_items
max_allowed = basket_threshold - total_basket_quantity
return max_allowed, basket_threshold
+ return None, None
def is_quantity_allowed(self, qty):
"""
