From 46ab5d620b52722418c79ee26361f9cc32905def Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Wed, 1 Dec 2021 00:45:56 +0000 Subject: [PATCH] Corrected missing assignment of variable --- ref-test/admin/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ref-test/admin/views.py b/ref-test/admin/views.py index 6159f7d..a50a126 100644 --- a/ref-test/admin/views.py +++ b/ref-test/admin/views.py @@ -340,7 +340,7 @@ def tests(filter=''): from .models.forms import CreateTest form = CreateTest() form.time_limit.choices = get_time_options() - form.dataset.choices=available_datasets() + form.dataset.choices = available_datasets() form.time_limit.default='none' form.dataset.default=get_default_dataset() form.process() @@ -373,6 +373,7 @@ def _tests(): from .models.forms import CreateTest form = CreateTest() form.dataset.choices = available_datasets() + form.time_limit.choices = get_time_options() if form.validate_on_submit(): start_date = request.form.get('start_date') start_date = datetime.strptime(start_date, '%Y-%m-%d')