Commits

Anonymous committed 2f78bd0

Minor fix to Flags to make it trivially pickle-able, and by extension, most
fields and forms.

  • Participants
  • Parent commits c60a9b9

Comments (0)

Files changed (1)

wtforms/fields/core.py

     Accessing a non-existing attribute returns False for its value.
     """
     def __getattr__(self, name):
+        if name.startswith('_'):
+            return super(Flags, self).__getattr__(name)
         return False
 
     def __contains__(self, name):