diff --git a/ref-test/app/admin/views.py b/ref-test/app/admin/views.py index e1d655e..da98188 100644 --- a/ref-test/app/admin/views.py +++ b/ref-test/app/admin/views.py @@ -258,8 +258,8 @@ def _tests(filter:str=None): if filter not in ['create','active','scheduled','expired','all']: return redirect(url_for('admin._tests', filter='active')) if filter == 'create': form = CreateTest() - form.start_date = datetime.now() - form.expiry_date = date.today() + timedelta(days=1) + form.start_date.default = datetime.now() + form.expiry_date.default = date.today() + timedelta(days=1) form.time_limit.choices = get_time_options() form.dataset.choices = get_dataset_choices() form.time_limit.default='none'