Merge pull request #75 from PUYUP/fix-maxlength

fix max_length
This commit is contained in:
Mike 2021-10-15 23:09:47 +00:00 committed by GitHub
commit 6220f0f466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,10 @@ class CSVFormField(forms.Field):
widget = CSVWidget
default_separator = ";"
def __init__(self, *args, **kwargs):
kwargs.pop('max_length', None)
super().__init__(*args, **kwargs)
def to_python(self, value):
if not value:
return []