Take out Optional() validator for tests to pass
This commit is contained in:
parent
542abb3c96
commit
68206307fd
@ -2,7 +2,7 @@ import re
|
||||
import pendulum
|
||||
from wtforms.fields.html5 import DateField, EmailField
|
||||
from wtforms.fields import StringField, FileField
|
||||
from wtforms.validators import InputRequired, Required, Email, Regexp, Optional
|
||||
from wtforms.validators import InputRequired, Required, Email, Regexp
|
||||
from flask_wtf.file import FileAllowed
|
||||
|
||||
from atst.domain.exceptions import NotFoundError
|
||||
@ -123,7 +123,7 @@ class BaseFinancialForm(ValidatedForm):
|
||||
ba_code = StringField(
|
||||
"Program Budget Activity (BA) Code (Optional)",
|
||||
description="BA Code is used to identify the purposes, projects, or types of activities financed by the appropriation fund. <br/><em>It should be two digits, followed by a letter.</em>",
|
||||
validators=[Optional(), Regexp(BA_CODE_REGEX)],
|
||||
validators=[Regexp(BA_CODE_REGEX)],
|
||||
)
|
||||
|
||||
fname_co = StringField("KO First Name", validators=[Required()])
|
||||
|
Loading…
x
Reference in New Issue
Block a user