diff --git a/django_filters/rest_framework/backends.py b/django_filters/rest_framework/backends.py index 835a67f9a..60d78e8a5 100644 --- a/django_filters/rest_framework/backends.py +++ b/django_filters/rest_framework/backends.py @@ -105,7 +105,9 @@ def to_html(self, request, queryset, view): return template.render(context, request) def get_coreschema_field(self, field): - if isinstance(field, filters.NumberFilter): + if isinstance(field, filters.BaseCSVFilter): + field_cls = compat.coreschema.String + elif isinstance(field, filters.NumberFilter): field_cls = compat.coreschema.Number else: field_cls = compat.coreschema.String