author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Mon, 21 Dec 2009 20:26:30 +0100 | |
changeset 4168 | 9d83f9c80c1c |
parent 4167 | 73e649a7797d |
child 4169 | 341d19ef7b7c |
web/formfields.py | file | annotate | diff | comparison | revisions |
--- a/web/formfields.py Mon Dec 21 20:25:58 2009 +0100 +++ b/web/formfields.py Mon Dec 21 20:26:30 2009 +0100 @@ -366,9 +366,9 @@ class StringField(Field): widget = TextArea - def __init__(self, max_length=None, **kwargs): + def __init__(self, name=None, max_length=None, **kwargs): self.max_length = max_length # must be set before super call - super(StringField, self).__init__(**kwargs) + super(StringField, self).__init__(name=name, **kwargs) def init_widget(self, widget): if widget is None: