Enforces minimum quantity of 0 for quantity boxes
This commit is contained in:
parent
dba3773636
commit
0b7ccfc827
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ class _QuantityBoxProductsForm(_ProductsForm):
|
||||||
field = forms.IntegerField(
|
field = forms.IntegerField(
|
||||||
label=product.name,
|
label=product.name,
|
||||||
help_text=help_text,
|
help_text=help_text,
|
||||||
|
min_value=0,
|
||||||
)
|
)
|
||||||
cls.base_fields[cls.field_name(product)] = field
|
cls.base_fields[cls.field_name(product)] = field
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue