diff options
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r-- | ishtar_common/models_common.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 26bc1c63f..9a595df84 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -1218,7 +1218,11 @@ class JsonData(models.Model, CachedGen): if value is None: continue if type(value) in (list, tuple): - value = " ; ".join([str(v) for v in value]) + value = " ; ".join([field.format_value(v) for v in value if v]) + if not value: + continue + else: + value = field.format_value(value) section_name = field.section.name if field.section else None if not sections or section_name != sections[-1][0]: # if section name is identical it is the same |