web/formfields.py
changeset 4168 9d83f9c80c1c
parent 4166 677e487e691a
child 4170 c325c62cec8e
--- 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: