diff options
Diffstat (limited to 'ishtar_common/views_item.py')
-rw-r--r-- | ishtar_common/views_item.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index 72381ed8b..275414d0e 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -1018,7 +1018,7 @@ def _format_geojson(rows): if not geo_attr or not name_attr: return data for row in rows: - feat = {'name': row[name_attr], 'id': row['id']} + feat = {'name': row[name_attr], 'id': row['id'], 'link': row['link']} if not row.get(geo_attr, None): data['no-geo'].append(feat) continue @@ -1624,8 +1624,7 @@ def get_item(model, func_name, default_name, extra_request_keys=None, + unicode(data[0]) + ") url not available") lnk = '' res = {'id': data[0]} - if data_type != 'json-map': - res['link'] = lnk + res['link'] = lnk for idx, value in enumerate(data[1:]): if value: table_col = table_cols[idx] |