mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-08-02 19:30:25 +03:00
Merge f9eabcc7c4
into f02ea337a2
This commit is contained in:
commit
a30f9bad91
|
@ -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