Skip to content
Snippets Groups Projects
Commit e609ec98 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'fix-field-types-access' into 'master'

Fix access to field_types

See merge request !97
parents 5f68d1a5 08812ffd
No related branches found
No related tags found
1 merge request!97Fix access to field_types
Pipeline #53235 canceled
...@@ -15,7 +15,7 @@ Unreleased ...@@ -15,7 +15,7 @@ Unreleased
Fixed Fixed
~~~~~ ~~~~~
* Wrong import in process utility * Fix logic and syntax mistaks in parts of process
`2.2`_ - 2022-02-03 `2.2`_ - 2022-02-03
------------------- -------------------
......
...@@ -133,7 +133,7 @@ def import_csv( ...@@ -133,7 +133,7 @@ def import_csv(
iterator = recorder.iterate(data_as_dict) if recorder else tqdm(data_as_dict) iterator = recorder.iterate(data_as_dict) if recorder else tqdm(data_as_dict)
for row in iterator: for row in iterator:
# Generate virtual and post-processed field data # 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 # Generate field using a Django template string, and the row as context
tmpl_str = field_type.get_template() tmpl_str = field_type.get_template()
if not tmpl_str: if not tmpl_str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment