- Problem adding documents

This commit is contained in:
Josako
2025-11-18 11:14:49 +01:00
parent 78043ab3ef
commit f2604db5a9
5 changed files with 113 additions and 14 deletions

View File

@@ -177,7 +177,7 @@ def validate_make_name(form, field):
raise ValidationError(f'A Make with name "{field.data}" already exists. Choose another name.')
class TenantMakeForm(DynamicFormBase):
class TenantMakeForm(FlaskForm):
name = StringField('Name', validators=[DataRequired(), Length(max=50), validate_make_name])
description = TextAreaField('Description', validators=[Optional()])
active = BooleanField('Active', validators=[Optional()], default=True)