diff --git a/docs/changelog.rst b/docs/changelog.rst index 2a3f14fb..bf97639d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -12,7 +12,6 @@ CHANGELOG * Add flatpages module * Add valorization POIs * Add sensitivity module -* Add public portals on watershed types allowing to publish them **Bug fixes** diff --git a/georiviere/portal/serializers/map.py b/georiviere/portal/serializers/map.py index f6364d31..b08c26e2 100644 --- a/georiviere/portal/serializers/map.py +++ b/georiviere/portal/serializers/map.py @@ -44,7 +44,7 @@ def get_geojson_url(self, obj): layer_type = obj.layer_type.split('-') # TODO: Make lang dynamic reverse_kwargs = {'lang': 'fr', 'format': 'geojson'} - if layer_type[0] in ['waterhseds', 'pois', 'streams', 'contributions']: + if layer_type[0] in ['watersheds', 'pois', 'streams', 'contributions']: reverse_kwargs['portal_pk'] = obj.portal.pk if len(layer_type) == 2: filter_type = layer_type[-1] @@ -58,7 +58,7 @@ def get_url(self, obj): return None # TODO: Make lang dynamic reverse_kwargs = {'lang': 'fr'} - if layer_type[0] in ['waterhseds', 'pois', 'streams', 'contributions']: + if layer_type[0] in ['watersheds', 'pois', 'streams', 'contributions']: reverse_kwargs['portal_pk'] = obj.portal.pk return reverse(f'api_portal:{layer_type[0]}-list', kwargs=reverse_kwargs)