mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-09 19:04:33 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user