diff --git a/c2cgeoportal/views/layers.py b/c2cgeoportal/views/layers.py index 6e28ea1651..c063a87e40 100644 --- a/c2cgeoportal/views/layers.py +++ b/c2cgeoportal/views/layers.py @@ -362,13 +362,9 @@ def metadata(self): if not layer.public and self.request.user is None: raise HTTPForbidden() - return self._metadata(str(layer.geo_table), layer.exclude_properties) - - @cache_region.cache_on_arguments() - def _metadata(self, geo_table, exclude_properties): return get_class( - geo_table, - exclude_properties=exclude_properties + str(layer.geo_table), + exclude_properties=layer.exclude_properties ) @view_config(route_name="layers_enumerate_attribute_values", renderer="json")