Module Expr Str Import alias ImportFrom alias ImportFrom alias alias alias identifier ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias identifier Assign NameStore TupleLoad Str Str FunctionDef arguments args defaults vararg body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot NameLoad body Assign NameStore Dict For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad Str body For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict Str Str Str Str Str Call NameLoad BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str BoolOpOr AttributeLoad NameLoad attr Str ListLoad ListLoad AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad attr If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr keyword BoolOpOr AttributeLoad NameLoad attr Num keyword BoolOpOr AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BoolOpOr NameLoad Dict Str Str Str ListLoad ListLoad Call NameLoad BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str If AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Return Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Dict Return Call NameLoad NameLoad keyword Num NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str ListLoad ListLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Dict keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index Str UnaryOpNot AttributeLoad NameLoad attr Return Call NameLoad keyword AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return decorator_list Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str ImportFrom alias If CompareNotIn NameLoad Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad Call NameLoad Assign NameStore BoolOpOr NameLoad Dict Assign NameStore IfExp NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore GeneratorExp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad Assign NameStore Dict For NameStore NameLoad body If BoolOpAnd CompareNotIn NameLoad NameLoad CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list Import alias identifier Assign NameStore Call NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return NameLoad orelse If AttributeLoad NameLoad attr body Return NameLoad Return NameLoad orelse If BoolOpAnd Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body ImportFrom alias Return Call NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign NameStore IfExp Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareNotEq NameLoad NameLoad body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr orelse Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Assign SubscriptStore NameLoad Index Str NameLoad Return Call NameLoad BinOpAdd AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad NameLoad body Pass decorator_list
N/A N/A 
Tools for generating forms based on MongoEngine Document schemas.
 N/A inspect werkzeug secure_filename wtforms Form validators fields f fields ModelSelectField ModelSelectMultipleField ListField mongoengine.fields ReferenceField IntField FloatField flask_superadmin.model AdminModelConverter AdminModelConverter_ N/A __all__ N/A model_fields model_form converts N/A N/A N/A args N/A N/A  A convenient decorator for the ModelConverter used to mark which
    method should be used to convert which MongoEngine field.
     _inner N/A N/A func N/A N/A N/A N/A func _converter_for N/A frozenset args N/A func N/A N/A _inner N/A ModelConverter N/A object N/A N/A  Manages the way MongoEngine fields are converted into WTForms fields
     __init__ N/A N/A self converters N/A None N/A N/A N/A converters N/A N/A converters N/A N/A name N/A dir self N/A N/A obj N/A getattr self name N/A N/A hasattr obj _converter_for N/A N/A classname N/A obj _converter_for N/A N/A N/A converters N/A classname obj N/A N/A self converters converters N/A convert N/A N/A self model field field_args multiple N/A False N/A N/A kwargs N/A label description validators filters default N/A unicode N/A N/A field verbose_name N/A field name N/A N/A field help_text N/A N/A N/A field default N/A field_args N/A N/A N/A N/A kwargs update field_args N/A N/A field required N/A N/A N/A N/A isinstance field IntField N/A isinstance field FloatField N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators InputRequired N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators Required N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators Optional N/A N/A field choices N/A N/A N/A kwargs N/A choices N/A field choices N/A N/A isinstance field IntField N/A N/A N/A kwargs N/A coerce int N/A N/A multiple N/A N/A N/A N/A f SelectField kwargs N/A N/A N/A N/A f SelectMultipleField kwargs N/A ftype N/A N/A type field __name__ N/A N/A hasattr field to_form_field N/A N/A N/A N/A field to_form_field model kwargs N/A N/A ftype N/A self converters N/A N/A N/A N/A N/A self converters N/A ftype model field kwargs N/A _string_common N/A N/A cls model field kwargs N/A N/A N/A N/A N/A field max_length N/A field min_length N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators Length max N/A N/A field max_length -1 min N/A N/A field min_length -1 N/A classmethod _number_common N/A N/A cls model field kwargs N/A N/A N/A N/A N/A field max_value N/A field min_value N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators NumberRange max N/A field max_value min N/A field min_value N/A classmethod conv_String N/A N/A self model field kwargs N/A N/A N/A N/A field regex N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators Regexp regex N/A field regex N/A N/A N/A self _string_common model field kwargs N/A N/A field max_length N/A N/A N/A N/A f TextField kwargs N/A N/A N/A f TextAreaField kwargs N/A N/A converts StringField conv_URL N/A N/A self model field kwargs N/A N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators URL N/A N/A N/A self _string_common model field kwargs N/A N/A N/A f TextField kwargs N/A N/A converts URLField conv_Email N/A N/A self model field kwargs N/A N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators Email N/A N/A N/A self _string_common model field kwargs N/A N/A N/A f TextField kwargs N/A N/A converts EmailField conv_Int N/A N/A self model field kwargs N/A N/A N/A N/A N/A self _number_common model field kwargs N/A N/A N/A f IntegerField kwargs N/A N/A converts IntField conv_Float N/A N/A self model field kwargs N/A N/A N/A N/A N/A self _number_common model field kwargs N/A N/A N/A f FloatField kwargs N/A N/A converts FloatField conv_File N/A N/A self model field kwargs N/A N/A N/A N/A N/A f FileField kwargs N/A N/A converts FileField conv_Image N/A N/A self model field kwargs N/A N/A N/A N/A N/A f FileField kwargs N/A N/A converts ImageField conv_Decimal N/A N/A self model field kwargs N/A N/A N/A N/A N/A self _number_common model field kwargs N/A N/A N/A f DecimalField kwargs N/A N/A converts DecimalField conv_Boolean N/A N/A self model field kwargs N/A N/A N/A N/A N/A f BooleanField kwargs N/A N/A converts BooleanField conv_DateTime N/A N/A self model field kwargs N/A N/A N/A N/A N/A f DateTimeField kwargs N/A N/A converts DateTimeField conv_Binary N/A N/A self model field kwargs N/A N/A N/A N/A field max_bytes N/A N/A N/A N/A N/A kwargs N/A validators append N/A N/A validators Length max N/A field max_bytes N/A N/A N/A f TextAreaField kwargs N/A N/A converts BinaryField conv_Dict N/A N/A self model field kwargs N/A N/A N/A N/A N/A f TextAreaField kwargs N/A N/A converts DictField conv_List N/A N/A self model field kwargs N/A N/A N/A kwargs N/A kwargs N/A validators filters label N/A N/A N/A unicode N/A N/A field verbose_name N/A field name N/A N/A N/A field field choices N/A N/A N/A N/A self convert model N/A field field None multiple True N/A N/A isinstance N/A field field ReferenceField N/A N/A N/A ModelSelectMultipleField model N/A N/A field field document_type kwargs N/A unbound_field N/A N/A self convert model N/A field field N/A N/A N/A ListField unbound_field min_entries 0 kwargs N/A N/A converts ListField conv_SortedList N/A N/A self model field kwargs N/A N/A N/A N/A N/A self conv_List model field kwargs N/A N/A converts SortedListField conv_GeoLocation N/A N/A self model field kwargs N/A N/A N/A N/A N/A converts GeoLocationField conv_ObjectId N/A N/A self model field kwargs N/A N/A N/A N/A N/A converts ObjectIdField conv_EmbeddedDocument N/A N/A self model field kwargs N/A N/A N/A kwargs N/A validators filters N/A N/A N/A form_class N/A model_form N/A field document_type_obj field_args N/A converter self N/A N/A N/A f FormField form_class kwargs N/A N/A converts EmbeddedDocumentField conv_Reference N/A N/A self model field kwargs N/A N/A N/A N/A kwargs N/A allow_blank N/A N/A field required N/A N/A ModelSelectField model N/A field document_type kwargs N/A N/A converts ReferenceField conv_GenericReference N/A N/A self model field kwargs N/A N/A N/A N/A N/A converts GenericReferenceField N/A model_fields N/A N/A model fields readonly_fields exclude field_args converter N/A None None None None None N/A N/A 
    Generate a dictionary of WTForms fields for a given MongoEngine model.

    See `model_form` docstring for description of parameters.
     mongoengine.base BaseDocument N/A N/A BaseDocument N/A N/A inspect getmro model N/A N/A N/A TypeError Model must be a MongoEngine Document schema N/A readonly_fields N/A readonly_fields N/A N/A exclude N/A exclude N/A N/A converter N/A converter N/A ModelConverter N/A field_args N/A field_args N/A N/A field_names N/A fields fields N/A N/A N/A model _fields keys N/A field_names N/A x N/A x field_names N/A x exclude N/A field_dict N/A N/A name field_names N/A N/A N/A N/A name readonly_fields N/A name N/A model _fields N/A N/A N/A KeyError N/A "%s" is not read-only and does not appear to be a field on the document. name N/A N/A N/A name N/A model _fields N/A name readonly_fields N/A N/A model_field N/A N/A model _fields N/A name N/A field N/A N/A converter convert model model_field N/A N/A field_args get name N/A N/A field None N/A N/A N/A field_dict N/A name field N/A field_dict N/A N/A mongoengine.fields fields N/A _unset_value N/A object N/A _remove_file_value N/A object data_to_field N/A N/A field data N/A N/A N/A N/A isinstance field N/A fields EmbeddedDocumentField N/A N/A N/A data_to_document N/A field document_type_obj data N/A N/A N/A isinstance field N/A N/A fields ListField N/A fields SequenceField N/A fields SortedListField N/A N/A l N/A N/A d data N/A N/A N/A N/A l append N/A data_to_field N/A field field d N/A l N/A N/A N/A isinstance field N/A fields FileField N/A N/A N/A data filename N/A N/A gfs N/A N/A field proxy_class db_alias N/A field db_alias collection_name N/A field collection_name instance N/A N/A field owner_document key N/A field name N/A N/A N/A gfs put N/A data stream filename N/A secure_filename N/A data filename content_type N/A data mimetype N/A gfs N/A N/A N/A data clear N/A N/A _remove_file_value N/A _unset_value N/A N/A N/A N/A isinstance field N/A N/A fields ReferenceField N/A fields ObjectIdField N/A isinstance data basestring N/A bson.objectid ObjectId N/A N/A ObjectId data N/A N/A data N/A data_to_document N/A N/A document data N/A N/A inspect isclass N/A new N/A N/A isclass document N/A document document N/A N/A name value N/A N/A data iteritems N/A N/A field N/A getattr N/A new __class__ name N/A field_value N/A data_to_field field value N/A N/A field_value _unset_value N/A N/A N/A field_value _remove_file_value N/A N/A N/A N/A N/A getattr new name delete N/A N/A N/A setattr new name field_value N/A new N/A model_form N/A N/A model base_class fields readonly_fields exclude field_args converter N/A Form None None None None None N/A N/A 
    Create a wtforms Form for a given MongoEngine Document schema::

        from flaskext.mongoengine.wtf import model_form
        from myproject.myapp.schemas import Article
        ArticleForm = model_form(Article)

    :param model:
        A MongoEngine Document schema class
    :param base_class:
        Base form class to extend from. Must be a ``wtforms.Form`` subclass.
    :param fields:
        An optional iterable with the property names that should be included
        in the form. Only these properties will have fields. It also
        determines the order of the fields.
    :param exclude:
        An optional iterable with the property names that should be excluded
        from the form. All other properties will have fields.
    :param field_args:
        An optional dictionary of field names mapping to keyword arguments used
        to construct each field object.
    :param converter:
        A converter to generate the fields based on the model properties. If
        not set, ``ModelConverter`` is used.
     N/A field_dict N/A model_fields model fields readonly_fields exclude field_args converter N/A N/A field_dict N/A model_class model populate_obj N/A N/A self obj N/A N/A N/A N/A data_to_document obj N/A self data N/A N/A N/A field_dict N/A populate_obj populate_obj N/A N/A type N/A N/A model __name__ Form N/A base_class field_dict N/A AdminModelConverter N/A AdminModelConverter_ ModelConverter N/A N/A N/A