Skip to content

Commit

Permalink
fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-brancotte committed Jan 26, 2024
1 parent 6ac9301 commit a8ff978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_filters/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")
Expand Down

0 comments on commit a8ff978

Please sign in to comment.