Skip to content

Commit

Permalink
fix: bug in MultiChoice field validation
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Feb 14, 2023
1 parent ff2d5d8 commit d6fbb52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_form_builder/dynamic_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def define_value(self, choices, **kwargs):
def clean(self, *args, **kwargs):
try:
args = args if isinstance(args[0], list) else ([args[0]],)
if args[0] == None: args = ([],)
if args[0] == [None]: args = ([],)
except IndexError:
args = ([],)
return super().clean(*args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='django-form-builder',
version='0.16.13',
version='0.16.14',
packages=find_packages(),
package_data={'': ['*.wav']},
data_files=[
Expand Down

0 comments on commit d6fbb52

Please sign in to comment.