Commits

Ralph Bean committed 2f66017

Support for form.submit being None (bugfix)

Comments (0)

Files changed (1)

tw2/forms/widgets.py

 
     @classmethod
     def post_define(cls):
-        cls.submit = cls.submit(parent=cls)
+        if cls.submit:
+            cls.submit = cls.submit(parent=cls)
 
     def __init__(self, **kw):
         super(Form, self).__init__(**kw)