diff --git a/django_filters/widgets.py b/django_filters/widgets.py index 8d358331..f5c99b11 100644 --- a/django_filters/widgets.py +++ b/django_filters/widgets.py @@ -205,8 +205,8 @@ def value_from_datadict(self, data, files, name): if value is not None: if value == "": # empty value should parse as an empty list return [] - if isinstance(value, list): - # since django.forms.widgets.SelectMultiple tries to use getlist + if isinstance(value, list): + # since django.forms.widgets.SelectMultiple tries to use getlist # if available, we should return value if it's already an array return value return value.split(",")