diff options
-rw-r--r-- | ishtar_common/models_imports.py | 1 | ||||
-rw-r--r-- | ishtar_common/views.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index 0a6a52c73..f94bc6dc0 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -604,6 +604,7 @@ class TargetKey(models.Model): TARGET_MODELS = [ ('OrganizationType', _(u"Organization type")), + ('ishtar_common.models.OrganizationType', _(u"Organization type")), ('TitleType', _(u"Title")), ('SourceType', _(u"Source type")), ('AuthorType', _(u"Author type")), diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 2ea10d0e8..e1ae52956 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -1258,6 +1258,8 @@ def get_item(model, func_name, default_name, extra_request_keys=[], row, delta = [], 0 # regroup cols with join "|" for idx, col_name in enumerate(table_cols): + if len(data[1:]) <= idx + delta: + break val = data[1:][idx + delta].encode( ENCODING, errors='replace') if col_name and "|" in col_name[0]: |