From a8ff9786c56a3c3bbc73b9d598728cb7416e544e Mon Sep 17 00:00:00 2001 From: Bryan Brancotte Date: Fri, 26 Jan 2024 10:44:19 +0100 Subject: [PATCH] fixing formatting --- django_filters/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(",")