Stéphane Klein  committed dbb9946

Bug fix #58 : FileField class don't work with validators.Required

  • Participants
  • Parent commits c60a9b9

Comments (0)

Files changed (1)

File wtforms/

 import re
+from cgi import FieldStorage
 __all__ = (
         self.message = message
     def __call__(self, form, field):
+        if isinstance(, FieldStorage) and is not None:
+            return
         if not or isinstance(, basestring) and not
             if self.message is None:
                 self.message = field.gettext(u'This field is required.')