mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-16 11:12:20 +03:00
Merge f9eabcc7c4
into c52cf2b045
This commit is contained in:
commit
d0e7cb1640
|
@ -87,8 +87,11 @@ def get_filtering_args_from_filterset(filterset_class, type):
|
||||||
form_field = form_field or filter_field.field
|
form_field = form_field or filter_field.field
|
||||||
field_type = convert_form_field(form_field).get_type()
|
field_type = convert_form_field(form_field).get_type()
|
||||||
|
|
||||||
if isinstance(filter_field, ListFilter) or isinstance(
|
if (
|
||||||
filter_field, RangeFilter
|
isinstance(filter_field, ListFilter)
|
||||||
|
or isinstance(filter_field, RangeFilter)
|
||||||
|
or isinstance(form_field, forms.ModelMultipleChoiceField)
|
||||||
|
or isinstance(form_field, GlobalIDMultipleChoiceField)
|
||||||
):
|
):
|
||||||
# Replace InFilter/RangeFilter filters (`in`, `range`) argument type to be a list of
|
# Replace InFilter/RangeFilter filters (`in`, `range`) argument type to be a list of
|
||||||
# the same type as the field. See comments in `replace_csv_filters` method for more details.
|
# the same type as the field. See comments in `replace_csv_filters` method for more details.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user