def render_request(): form = RequestForm() goals = get_goals_for_request_form(GOALS_JSON_PATH) form.goal.choices = goals form.goal.default = goals[0][0] form.process() return render_template('request.html', form=form)