Skip to content

Commit

Permalink
Fix 500 error for custom dept checklist pages
Browse files Browse the repository at this point in the history
Makes `conf` available to custom pages so that we can display their configured description and not just a hard-coded one.
  • Loading branch information
kitsuta committed Oct 24, 2024
1 parent 711865b commit 2898d96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uber/site_sections/dept_checklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2898d96

Please sign in to comment.