diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 71538a6dea67d0f7b91f2297919a1bc1a70b64f5..cc175a345172a0ad3c3c38d9fe5fb145a05844a1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -15,7 +15,7 @@ Unreleased Fixed ~~~~~ -* Wrong import in process utility +* Fix logic and syntax mistaks in parts of process `2.2`_ - 2022-02-03 ------------------- diff --git a/aleksis/apps/csv_import/util/process.py b/aleksis/apps/csv_import/util/process.py index e7e49270a5a6e96b5779cb63802e03ae5a22a3dc..93700d221b5bf4e346c80b6c9f875242ca78efec 100644 --- a/aleksis/apps/csv_import/util/process.py +++ b/aleksis/apps/csv_import/util/process.py @@ -133,7 +133,7 @@ def import_csv( iterator = recorder.iterate(data_as_dict) if recorder else tqdm(data_as_dict) for row in iterator: # Generate virtual and post-processed field data - for column_name, field_type in field_types: + for column_name, field_type in field_types.items(): # Generate field using a Django template string, and the row as context tmpl_str = field_type.get_template() if not tmpl_str: