fix max_length

This commit is contained in:
PUYUP 2021-10-12 12:49:25 +07:00
parent 3f5aa35dd7
commit 198911582a

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 []