From 198911582a38d6c9f031f02eae15259909b3fa67 Mon Sep 17 00:00:00 2001 From: PUYUP Date: Tue, 12 Oct 2021 12:49:25 +0700 Subject: [PATCH] fix max_length --- eav/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eav/forms.py b/eav/forms.py index 9153bbf..1996a9a 100644 --- a/eav/forms.py +++ b/eav/forms.py @@ -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 []