diff --git a/web/core/views.py b/web/core/views.py index 3ad0001..8c0610e 100644 --- a/web/core/views.py +++ b/web/core/views.py @@ -359,7 +359,8 @@ def import_wizard(request): # If the first row doesn’t look like our header, allow import to proceed, # but show a gentle warning in the result page. header_ok = (norm == expected_norm) - + if not hasattr(core_utils, "EXPECTED_HEADERS"): + core_utils.EXPECTED_HEADERS = _EXPECTED_HEADERS # hand off to your existing robust importer report = import_csv_bytes( raw,