web/formfields.py
branchstable
changeset 2362 f2409d5f2b75
parent 2360 1d43aa551ba9
child 2459 d088d0ff48a1
child 2723 d38c2b01d766
--- a/web/formfields.py	Thu Jul 09 17:16:49 2009 +0200
+++ b/web/formfields.py	Thu Jul 09 19:35:32 2009 +0200
@@ -207,7 +207,7 @@
         super(StringField, self).init_widget(widget)
         if isinstance(self.widget, TextArea):
             self.init_text_area(self.widget)
-        if isinstance(self.widget, TextInput):
+        elif isinstance(self.widget, TextInput):
             self.init_text_input(self.widget)
 
     def init_text_input(self, widget):