mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Merge pull request #1115 from eeintech/fix_form_errors
Fix for #1111 (missing logic to check for model errors)
This commit is contained in:
		| @@ -27,6 +27,10 @@ class HelperForm(forms.ModelForm): | ||||
|         self.helper = FormHelper() | ||||
|  | ||||
|         self.helper.form_tag = False | ||||
|  | ||||
|         # Check for errors from model validation | ||||
|         # If none, disable crispy form errors | ||||
|         if not self.errors: | ||||
|             self.helper.form_show_errors = False | ||||
|  | ||||
|         """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user