Commits

Rob Lanphier  committed 25cac74

If enum, then the default value is the first item in the enum

  • Participants
  • Parent commits 2e8f244

Comments (0)

Files changed (1)

File jsonwidget/schema.py

         return self.data['enum']
 
     def get_blank_value(self):
+        if self.is_enum():
+            return self.enum_options()[0]
         type = self.get_type()
         if(self.is_type('object')):
             retval = {}