<s> from django . db . models import Q <EOL> import django_filters2 <EOL> class FeatMultiPrerequisiteFieldFilter ( django_filters2 . CharFilter ) : <EOL> def filter ( self , qs , value ) : <EOL> if value : <EOL> return qs . filter ( <EOL> Q ( special_feat_prerequisites__print_format__icontains = value ) | <EOL> Q ( textfeatprerequisite__text__icontains = value ) | <EOL> Q ( required_skills__skill__name__icontains = value ) | <EOL> Q ( required_feats__required_feat__name__icontains = value ) <EOL> ) <EOL> return qs </s>
