From 2898d961e121e080a1f3272dc1b651037928b368 Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Thu, 24 Oct 2024 12:52:35 -0400 Subject: [PATCH] Fix 500 error for custom dept checklist pages Makes `conf` available to custom pages so that we can display their configured description and not just a hard-coded one. --- uber/site_sections/dept_checklist.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uber/site_sections/dept_checklist.py b/uber/site_sections/dept_checklist.py index 55947a587..1a08392d1 100644 --- a/uber/site_sections/dept_checklist.py +++ b/uber/site_sections/dept_checklist.py @@ -30,7 +30,10 @@ def _submit_checklist_item(session, department_id, submitted, csrf_token, slug, department_id, custom_message or 'Thanks for completing the {} form!'.format(slug.replace('_', ' '))) - return {'department': department} + return { + 'department': department, + 'conf': DeptChecklistConf.instances[slug], + } @all_renderable()