def multiCTypeFilter(queryset, querydict):
    try:
        committee_class = querydict['committee_class']
        committee_class = committee_class.upper()
        if committee_class == 'J':
            queryset = queryset.filter(designation=committee_class)
        elif committee_class == 'L':
            # a D commmittee type is a delegate, so use L instead.
            queryset = queryset.filter(designation='D')
        else:
            committee_type_list = list(committee_class)
            queryset = queryset.filter(ctype__in=committee_type_list)

    except __HOLE__:
        pass

    return queryset
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/api/filters.py/multiCTypeFilter