

def filter_queryset(self, request, queryset, view):
    '\n        This performs field level filtering on the result set\n        Eg: ?title=James Joyce\n        '
    fields = set(view.get_api_fields(queryset.model)).union({'id'})
    for (field_name, value) in request.GET.items():
        if (field_name in fields):
            field = getattr(queryset.model, field_name, None)
            if isinstance(field, _TaggableManager):
                for tag in value.split(','):
                    queryset = queryset.filter(**{
                        (field_name + '__name'): request,
                    })
                queryset._filtered_by_tag = True
            else:
                queryset = queryset.filter(**{
                    field_name: value,
                })
    return queryset

dataset/ETHPy150Open torchbox/wagtail/wagtail/contrib/wagtailapi/filters.py FieldsFilter.filter_queryset/VarMisuse@115/176 `tag`->`request`