Adds an upper limit on quantity boxes (it’s set to 500 for the moment though).
Closes #19.
This commit is contained in:
parent
42912519f1
commit
00f87e30b7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue