Prettify map pin popups. Closes #18.
This commit is contained in:
@ -34,10 +34,24 @@ class UserViewSet(viewsets.ModelViewSet):
|
||||
|
||||
|
||||
class CaseStudySerializer(gis_serializers.GeoFeatureModelSerializer):
|
||||
sector_of_economy = serializers.CharField(source='get_sector_of_economy_display')
|
||||
country_name = serializers.CharField(source='get_country_display')
|
||||
positive_or_negative_display = serializers.CharField(source='get_positive_or_negative_display')
|
||||
|
||||
class Meta:
|
||||
model = CaseStudy
|
||||
geo_field = "location"
|
||||
fields = '__all__'
|
||||
fields = (
|
||||
'country',
|
||||
'country_name',
|
||||
'entry_name',
|
||||
'image',
|
||||
'location',
|
||||
'positive_or_negative',
|
||||
'positive_or_negative_display',
|
||||
'sector_of_economy',
|
||||
'slug'
|
||||
)
|
||||
|
||||
|
||||
class CaseStudyViewSet(viewsets.ModelViewSet):
|
||||
|
Reference in New Issue
Block a user