@classmethod
def get_channel_source(cls, records, name):
    result = {r.id: (r.channel and r.channel.source) for r in records}
    return result
@classmethod
def get_channel_source(cls, records, name):
    result = {r.id: (r.channel and r.channel.source) for r in records}
    return result