# Path: flask_superadmin/form.py
# class BaseForm(wtf.Form):
# class TimeField(fields.Field):
# class ChosenSelectWidget(widgets.Select):
# class ChosenSelectField(fields.SelectField):
# class FileFieldWidget(object):
# class FileField(fields.FileField):
# class DatePickerWidget(widgets.TextInput):
# class DateTimePickerWidget(widgets.TextInput):
#     def __init__(self, formdata=None, obj=None, prefix='', **kwargs):
#     def has_file_field(self):
#     def __init__(self, label=None, validators=None, formats=None, **kwargs):
#     def _value(self):
#     def process_formdata(self, valuelist):
#     def __call__(self, field, **kwargs):
#     def __call__(self, field, **kwargs):
#     def __init__(self,*args,**kwargs):
#     def process(self, formdata, data=fields._unset_value):
#     def clear(self):
#     def data(self):
#     def data(self, data):
#     def __call__(self, field, **kwargs):
#     def __call__(self, field, **kwargs):


from wtforms import fields as f
from wtforms import Form
from wtforms import validators
from wtforms.ext.django.fields import ModelSelectField
from flask_superadmin import form
            from django.contrib.localflavor.us.us_states import STATE_CHOICES
        if extra_converters:
            converters.update(extra_converters)
        super(AdminModelConverter, self).__init__(converters)

    def make_simple_converter(self, field_type):
        def _converter(model, field, kwargs):
            return field_type(**kwargs)
        return _converter

    def conv_ForeignKey(self, model, field, kwargs):
        return ModelSelectField(widget=form.ChosenSelectWidget(),
                                model=field.rel.to, **kwargs)

    def conv_TimeField(self, model, field, kwargs):
        def time_only(obj):
            try:
                return obj.time()
            except AttributeError:
                return obj
        kwargs['filters'].append(time_only)
        return f.DateTimeField(widget=form.DateTimePickerWidget(),
                               format='%H:%M:%S', **kwargs)

    def conv_DateTimeField(self, model, field, kwargs):
        def time_only(obj):
            try:
                return obj.time()
            except AttributeError:
                return obj
        kwargs['filters'].append(time_only)

# Path: flask_superadmin/form.py
# class BaseForm(wtf.Form):
# class TimeField(fields.Field):
# class ChosenSelectWidget(widgets.Select):
# class ChosenSelectField(fields.SelectField):
# class FileFieldWidget(object):
# class FileField(fields.FileField):
# class DatePickerWidget(widgets.TextInput):
# class DateTimePickerWidget(widgets.TextInput):
#     def __init__(self, formdata=None, obj=None, prefix='', **kwargs):
#     def has_file_field(self):
#     def __init__(self, label=None, validators=None, formats=None, **kwargs):
#     def _value(self):
#     def process_formdata(self, valuelist):
#     def __call__(self, field, **kwargs):
#     def __call__(self, field, **kwargs):
#     def __init__(self,*args,**kwargs):
#     def process(self, formdata, data=fields._unset_value):
#     def clear(self):
#     def data(self):
#     def data(self, data):
#     def __call__(self, field, **kwargs):
#     def __call__(self, field, **kwargs):


# Path: flask_superadmin/model/backends/django/orm.py
from wtforms import fields as f
from wtforms import Form
from wtforms import validators
from wtforms.ext.django.fields import ModelSelectField
from flask_superadmin import form
            from django.contrib.localflavor.us.us_states import STATE_CHOICES

        if extra_converters:
            converters.update(extra_converters)
        super(AdminModelConverter, self).__init__(converters)

    def make_simple_converter(self, field_type):
        def _converter(model, field, kwargs):
            return field_type(**kwargs)
        return _converter

    def conv_ForeignKey(self, model, field, kwargs):
        return ModelSelectField(widget=form.ChosenSelectWidget(),
                                model=field.rel.to, **kwargs)

    def conv_TimeField(self, model, field, kwargs):
        def time_only(obj):
            try:
                return obj.time()
            except AttributeError:
                return obj
        kwargs['filters'].append(time_only)
        return f.DateTimeField(widget=form.DateTimePickerWidget(),
                               format='%H:%M:%S', **kwargs)

    def conv_DateTimeField(self, model, field, kwargs):
        def time_only(obj):
            try:
                return obj.time()
            except AttributeError:
                return obj
        kwargs['filters'].append(time_only)

        return f.DateTimeField(widget=form.DateTimePickerWidget(),