Commits

Ralph Bean  committed 2f66017

Support for form.submit being None (bugfix)

  • Participants
  • Parent commits e766d17

Comments (0)

Files changed (1)

File 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)