Fixes bug in the t-shirt-style widget.
This commit is contained in:
		
							parent
							
								
									27d0e1c6be
								
							
						
					
					
						commit
						17dd91d56b
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -340,6 +340,14 @@ class _ItemQuantityProductsFormSet(_HasProductsFields, forms.BaseFormSet): | |||
|         for form in self.forms: | ||||
|             form.add_product_error(product, error) | ||||
| 
 | ||||
|     @property | ||||
|     def errors(self): | ||||
|         _errors = super(_ItemQuantityProductsFormSet, self).errors | ||||
|         if False not in [not form.errors for form in self.forms]: | ||||
|             return [] | ||||
|         else: | ||||
|             return _errors | ||||
| 
 | ||||
| 
 | ||||
| class VoucherForm(forms.Form): | ||||
|     voucher = forms.CharField( | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer