diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-07-12 12:16:30 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-07-12 12:16:30 +0200 |
commit | 36529b321bda673a47b67caf389dbaef6be4edfc (patch) | |
tree | 3ec97fc6cd4cde8ebf56c27be763512f2510772e /ishtar_common/views.py | |
parent | f2e2d4f7c7172cc84c14613ea4049ae54e75d818 (diff) | |
download | Ishtar-36529b321bda673a47b67caf389dbaef6be4edfc.tar.bz2 Ishtar-36529b321bda673a47b67caf389dbaef6be4edfc.zip |
CSV Export: add documentation type to models to exports - fail silently if type is not available (refs #3652)
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r-- | ishtar_common/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 0be382866..5786391cc 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -1153,7 +1153,7 @@ def get_item(model, func_name, default_name, extra_request_keys=[], for idx, col_name in enumerate(table_cols): val = data[1:][idx + delta].encode( ENCODING, errors='replace') - if "|" in col_name[0]: + if col_name and "|" in col_name[0]: for delta_idx in range(len(col_name[0].split('|')) - 1): delta += 1 val += data[1:][idx + delta].encode( |