'Return the sources slug instead of the id.'

def to_representation(self, obj):

    data = super(AccountInfoSerializer, self).to_representation(obj)
    if (obj.pk is None):
        source = mkt.LOGIN_SOURCE_LOOKUP[mkt.LOGIN_SOURCE_UNKNOWN]
    elif (obj.source in self.ALLOWED_SOURCES):
        source = mkt.LOGIN_SOURCE_LOOKUP[obj.source]
    else:
        source = mkt.LOGIN_SOURCE_LOOKUP[mkt.LOGIN_SOURCE_BROWSERID]
    data['source'] = source
    return data
