def to_representation(self, obj):

        repr = super(AuthoritySerializer, self).to_representation(obj)
        if hasattr(obj, 'person'):
            obj = obj.person
            for fname in ['personal_name_last',
                          'personal_name_first',
                          'personal_name_suffix']:
                repr[fname] = getattr(obj, fname)
        return repr
Set the given properties on a KISSmetrics user.
dataset/ETHPy150Open upconsulting/IsisCB/isiscb/isisdata/views.py/AuthoritySerializer.to_representation--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/analytics/tasks.py/identify