def __init__(self, name, fields=None, default=0, label=None, **kwargs):
    super(Enum, self).__init__(name, default, label, **kwargs)
    self.update({'fields': (fields or (name,))})
def __init__(self, name, fields=None, default=0, label=None, **kwargs):
    super(Enum, self).__init__(name, default, label, **kwargs)
    self.update({'fields': (fields or (name,))})