Expand BooleanField's default_values for stepthrough test

This commit is contained in:
richard-dds 2018-08-14 21:22:10 -04:00
parent 90ada6992b
commit bcf74b09eb
3 changed files with 3 additions and 4 deletions

View File

@ -21,8 +21,8 @@ class POCForm(ValidatedForm):
am_poc = BooleanField(
"I am the technical POC.",
validators=[Required()],
default=False
default=False,
false_values=(False, "false", "False", "no", "")
)
fname_poc = StringField("POC First Name", validators=[Required()])

View File

@ -7,7 +7,6 @@ export default {
methods: {
onInput: function (e) {
console.log(e)
this.$root.$emit('field-change', {
value: e.target.checked,
name: this.name

View File

@ -56,7 +56,7 @@ class RequestFactory(factory.alchemy.SQLAlchemyModelFactory):
def build_request_body(cls, user, dollar_value=1000000):
return {
"primary_poc": {
"am_poc": "no",
"am_poc": False,
"dodid_poc": user.dod_id,
"email_poc": user.email,
"fname_poc": user.first_name,