Get the BooleanField working in the form.

This commit is contained in:
Rebecca Law
2017-01-03 16:14:25 +00:00
parent 2e69d3c680
commit 21582cadb3
3 changed files with 26 additions and 44 deletions

View File

@@ -517,7 +517,8 @@ class Whitelist(Form):
label="Mobile numbers"
)
class DateFilterForm(Form):
start_date = DateField("Start Date", [validators.optional()])
end_date = StringField("End Date", [validators.optional()])
include_from_test_key = BooleanField("Include test keys", default='checked')
end_date = DateField("End Date", [validators.optional()])
include_from_test_key = BooleanField("Include test keys", default="checked", false_values={"N"})