carltongibson / django-filter

A generic system for filtering Django QuerySets based on user selections

Home Page:https://django-filter.readthedocs.io/en/main/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple filter with CharFilter

A-Levin opened this issue · comments

I have model Task, and it has fk to Family model.
class ShortInspectionTaskFilter(filters.FilterSet): city = filters.CharFilter(field_name="family__city") class Meta: model = Task fields = ("city",)
how could I pass multiple values of cities to these filter?