diff --git a/geonode/api/resourcebase_api.py b/geonode/api/resourcebase_api.py index d16e28b8297..2895895a7f3 100644 --- a/geonode/api/resourcebase_api.py +++ b/geonode/api/resourcebase_api.py @@ -122,7 +122,6 @@ class CommonModelApi(ModelResource): 'hazard_unit', 'hazard_period', 'hazard_set', - 'typename', ] def build_filters(self, filters=None): @@ -586,6 +585,10 @@ class LayerResource(CommonModelApi): """Layer API""" + # copy parent attribute before modifying + VALUES = CommonModelApi.VALUES[:] + VALUES.append('typename') + class Meta(CommonMetaApi): queryset = Layer.objects.distinct().order_by('-date') if settings.RESOURCE_PUBLISHING: