Skip to content

Commit

Permalink
Fix schema type for BaseCSVFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderbeyond committed Apr 21, 2020
1 parent 9305753 commit 2dce3e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django_filters/rest_framework/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2dce3e9

Please sign in to comment.