def get_entity_names(self, data):
        """Return serialized list of entity names on data that user has `view` permission on."""
        entities = self._filter_queryset('view_entity', data.entity_set.all())
        return list(entities.values_list('name', flat=True))
Return serialized list of entity names on data that user has `view` permission on.