From ed91de6f56f86c696e6acf11107a02b85ccaf194 Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Fri, 1 Nov 2024 16:16:40 -0400 Subject: [PATCH] Fix guest-submitted panel apps If a guest submitted a panel with any other panelists listed, a variable collision removed the 'submitter' panelist object we create to tie the panel to the guest group. Fixes https://magfest.atlassian.net/browse/MAGDEV-1332. --- uber/site_sections/panels.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uber/site_sections/panels.py b/uber/site_sections/panels.py index a6e35018f..ae105f6a1 100644 --- a/uber/site_sections/panels.py +++ b/uber/site_sections/panels.py @@ -161,8 +161,8 @@ def process_panel_app(session, app, panelist, other_panelists_compiled, **params message = check(app) or check_other_panelists(other_panelists_compiled) or '' if not message: - for panelist in other_panelists_compiled: - panelist.app_id = app.id + for other_panelist in other_panelists_compiled: + other_panelist.app_id = app.id session.add_all([app, panelist] + other_panelists_compiled) return message