From 648a81740efb234f39d6efb18e5938bcaf0c9424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Br=C3=A9mond?= Date: Sun, 17 Jan 2021 19:07:11 -0800 Subject: [PATCH] Adjust docstrings --- graphene_django/filter/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene_django/filter/utils.py b/graphene_django/filter/utils.py index 1be114e..2be3778 100644 --- a/graphene_django/filter/utils.py +++ b/graphene_django/filter/utils.py @@ -42,7 +42,7 @@ def get_filtering_args_from_filterset(filterset_class, type): field = convert_form_field(form_field) if filter_type in {"in", "range", "contains", "overlap"}: - # Replace CSV filters (`in`, `range`) argument type to be a list of + # Replace CSV filters (`in`, `range`, `contains`, `overlap`) argument type to be a list of # the same type as the field. See comments in # `replace_csv_filters` method for more details. field = graphene.List(field.get_type()) @@ -71,7 +71,7 @@ def get_filterset_class(filterset_class, **meta): def replace_csv_filters(filterset_class): """ - Replace the "in" and "range" filters (that are not explicitly declared) to not be BaseCSVFilter (BaseInFilter, BaseRangeFilter) objects anymore + Replace the "in", "contains", "overlap" and "range" filters (that are not explicitly declared) to not be BaseCSVFilter (BaseInFilter, BaseRangeFilter) objects anymore but regular Filter objects that simply use the input value as filter argument on the queryset. This is because those BaseCSVFilter are expecting a string as input with comma separated value but with GraphQl we