Update web/core/views.py
This commit is contained in:
+2
-1
@@ -359,7 +359,8 @@ def import_wizard(request):
|
|||||||
# If the first row doesn’t look like our header, allow import to proceed,
|
# If the first row doesn’t look like our header, allow import to proceed,
|
||||||
# but show a gentle warning in the result page.
|
# but show a gentle warning in the result page.
|
||||||
header_ok = (norm == expected_norm)
|
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
|
# hand off to your existing robust importer
|
||||||
report = import_csv_bytes(
|
report = import_csv_bytes(
|
||||||
raw,
|
raw,
|
||||||
|
|||||||
Reference in New Issue
Block a user