From e2109ff913f20fff1550996b06d3ab22d2efc7ca Mon Sep 17 00:00:00 2001 From: ismail Date: Tue, 16 Jun 2026 23:59:42 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20QI=20project=20Excel=20export=20?= =?UTF-8?q?=E2=80=94=20PDCAPhaseChoices/FOCUSPhaseChoices=20not=20imported?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NameError in export_utils.py (line 168 used PDCAPhaseChoices.choices without importing it). Added the import. Re-verified: export now returns 200 with correct content-type (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet). --- apps/projects/export_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/projects/export_utils.py b/apps/projects/export_utils.py index eec1136..844ab21 100644 --- a/apps/projects/export_utils.py +++ b/apps/projects/export_utils.py @@ -2,6 +2,8 @@ from openpyxl import Workbook from openpyxl.styles import Font, PatternFill, Alignment, Border, Side from openpyxl.utils import get_column_letter +from .models import PDCAPhaseChoices, FOCUSPhaseChoices + NAVY_FILL = PatternFill(start_color="005696", end_color="005696", fill_type="solid") BLUE_FILL = PatternFill(start_color="E0F2FE", end_color="E0F2FE", fill_type="solid")