Adds an upper limit on quantity boxes (it’s set to 500 for the moment though).

Closes #19.
This commit is contained in:
Christopher Neugebauer 2016-04-25 16:16:22 +10:00
parent 42912519f1
commit 00f87e30b7

View file

@ -100,6 +100,7 @@ class _QuantityBoxProductsForm(_ProductsForm):
label=product.name,
help_text=help_text,
min_value=0,
max_value=500, # Issue #19. We should figure out real limit.
)
cls.base_fields[cls.field_name(product)] = field