Skip to content

Commit

Permalink
Make layer configuration in json map more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
capooti committed Apr 4, 2018
1 parent 34cc05d commit 730c0a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion geonode/contrib/worldmap/wm_extra/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,12 @@ def get_layer_attributes(layer):
attribute_fields = []
attributes = layer.attribute_set.filter(visible=True).order_by('display_order')
for la in attributes:
searchable = False
if hasattr(la, 'extlayerattribute'):
searchable = la.extlayerattribute.searchable
attribute_fields.append({"id": la.attribute,
"header": la.attribute_label,
"searchable" : la.extlayerattribute.searchable
"searchable" : searchable
})
return attribute_fields

Expand Down

0 comments on commit 730c0a3

Please sign in to comment.