'Returns a dictionary containing:
`average` the (float) average of all ratings of this object
`count` the number of ratings'

def serialize_community_rating(self, item, key, **context):

    manager = self.manager
    return {'average': manager.ratings_avg(item), 'count': manager.ratings_count(item)}
