This commit renders the platform admin page with the given start and end date query params.

Need to add a form to the page to take these params.
This commit is contained in:
Rebecca Law
2016-12-28 15:23:19 +00:00
parent df41da4860
commit 5572d0f25f
4 changed files with 41 additions and 55 deletions

View File

@@ -516,16 +516,3 @@ class Whitelist(Form):
max_entries=5,
label="Mobile numbers"
)
class DateFilterForm(Form):
start_date = DateField("Start Date", [validators.optional()])
end_date = StringField("End Date", [validators.optional()])
def validate(self):
print("****In validate")
if self.start_date.data and not self.end_date.data:
print("***** false {}".format(type(self.end_date.errors)))
raise ValidationError('Both required')
else:
return True