Skip to content

Commit

Permalink
"display_field" is now standard for contribution; fixes #248
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius committed May 12, 2015
1 parent a815df5 commit 3aa8036
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geokey/contributions/serializers.py
Expand Up @@ -470,6 +470,7 @@ def to_representation(self, obj):
'type': 'Feature',
'geometry': json.loads(location.geometry.geojson),
'properties': obj.properties,
'display_field': self.get_display_field(obj),
'meta': {
'status': obj.status,
'creator': {
Expand Down Expand Up @@ -499,8 +500,6 @@ def to_representation(self, obj):
'colour': cat.colour
}

feature['display_field'] = self.get_display_field(obj)

q = self.context.get('search')
if q is not None:
feature['search_matches'] = self.get_search_result(obj, q)
Expand Down

0 comments on commit 3aa8036

Please sign in to comment.