Skip to content

Commit

Permalink
refactor: remove redundant form validator scidsg#573
Browse files Browse the repository at this point in the history
For Roadmap Item scidsg#533
  • Loading branch information
rmlibre committed Sep 14, 2024
1 parent 25c49d2 commit d745fdd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hushline/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ class UpdateBrandPrimaryColorForm(FlaskForm):


class UpdateBrandAppNameForm(FlaskForm):
brand_app_name = StringField(
"App Name", validators=[CanonicalHTML(), DataRequired(), Length(min=2, max=30)]
)
brand_app_name = StringField("App Name", validators=[CanonicalHTML(), Length(min=2, max=30)])


def set_field_attribute(input_field: Field, attribute: str, value: str) -> None:
Expand Down

0 comments on commit d745fdd

Please sign in to comment.