def multiCommitteeTypeFilter(queryset, querydict):
    try:
        committee_class = querydict['committee_class']
        committee_class = committee_class.upper()
        if committee_class == 'J':
            queryset = queryset.filter(committee_designation=committee_class)
        elif committee_class == 'L':
            # a D commmittee type is a delegate, so use L instead.
            queryset = queryset.filter(committee_designation='D')
        else:
            committee_type_list = list(committee_class)
            queryset = queryset.filter(committee_type__in=committee_type_list)
        
    except __HOLE__:
        pass
        
    return queryset

# variant with different name for committee type.
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/api/filters.py/multiCommitteeTypeFilter