Better reporting of errors in long-and-thin categories
This commit is contained in:
parent
d52fc6eb9d
commit
482fe22d89
1 changed files with 1 additions and 0 deletions
|
@ -277,6 +277,7 @@ class _ItemQuantityProductsForm(_ProductsForm):
|
||||||
return
|
return
|
||||||
|
|
||||||
if product.id == self.cleaned_data[self.CHOICE_FIELD]:
|
if product.id == self.cleaned_data[self.CHOICE_FIELD]:
|
||||||
|
self.add_error(self.CHOICE_FIELD, error)
|
||||||
self.add_error(self.QUANTITY_FIELD, error)
|
self.add_error(self.QUANTITY_FIELD, error)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue