mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for #1111 (missing logic)
This commit is contained in:
parent
eead52a5dd
commit
b17b8db25c
@ -27,7 +27,11 @@ class HelperForm(forms.ModelForm):
|
|||||||
self.helper = FormHelper()
|
self.helper = FormHelper()
|
||||||
|
|
||||||
self.helper.form_tag = False
|
self.helper.form_tag = False
|
||||||
self.helper.form_show_errors = False
|
|
||||||
|
# Check for errors from model validation
|
||||||
|
# If none, disable crispy form errors
|
||||||
|
if not self.errors:
|
||||||
|
self.helper.form_show_errors = False
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Create a default 'layout' for this form.
|
Create a default 'layout' for this form.
|
||||||
|
Loading…
Reference in New Issue
Block a user