'Returns the role label (i.e. "Staff" or "Community TA") for the
endorsing user'

def get_endorsed_by_label(self, obj):

    endorsement = obj.get('endorsement')
    if endorsement:
        return self._get_user_label(int(endorsement['user_id']))
    else:
        return None
