def apply_filters(self, queryset, names=None, excludes=[]):
    for (name, f) in self.get_filters():
        if ((name in excludes) or (names and (name not in names))):
            continue
        queryset = self.apply_filter(queryset, name)
    return queryset
def apply_filters(self, queryset, names=None, excludes=[]):
    for (name, f) in self.get_filters():
        if ((name in excludes) or (names and (name not in names))):
            continue
        queryset = self.apply_filter(queryset, name)
    return queryset