def filter_queryset(self, queryset):
for name, filt in self.filters.items():<EOL><INDENT>val = self.values.get(name, None)<EOL>if name is None:<EOL><INDENT>continue<EOL><DEDENT>params = filt.filter_params(val)<EOL>if not params:<EOL><INDENT>continue<EOL><DEDENT>if isinstance(params, dict):<EOL><INDENT>queryset = queryset.filter(**params)<EOL><DEDENT>if isinstance(params, QNode):<EOL><INDENT>queryset = queryset.filter(params)<EOL><DEDENT><DEDENT>return queryset<EOL>
convert values to filtering params and apply to queryset