Module Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad NameLoad body If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad Str NameLoad Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Continue If BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIn NameLoad ListLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd NameLoad UnaryOpNot CompareIn NameLoad NameLoad body Continue If BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr kwarg body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str CompareIn NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Str If CompareEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad body Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd NameLoad UnaryOpNot CompareIn NameLoad NameLoad body Continue If BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Continue Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad ListComp TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad BoolOpOr UnaryOpNot NameLoad BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Str TryExcept body Expr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass orelse Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Call NameLoad NameLoad Str NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Dict orelse Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body TryExcept body Expr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Raise Call NameLoad Str Assign NameStore Dict Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore TupleLoad NameLoad If Call NameLoad NameLoad Str body Assign NameStore TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Dict Str Str NameLoad NameLoad Return Call NameLoad NameLoad TupleLoad NameLoad NameLoad decorator_list
N/A N/A datetime django forms N/A json django.utils.datastructures SortedDict django.forms.util ErrorList django.forms.forms BaseForm get_declared_fields fields JsonField JsonListField save_instance N/A N/A form instance fields fail_message commit exclude N/A None saved True None N/A N/A N/A form errors N/A N/A N/A ValueError N/A The %s could not be %s because the data didn't validate. N/A object fail_message N/A cleaned_data N/A form cleaned_data N/A N/A field_name field_type N/A N/A N/A instance structure items N/A N/A N/A fields N/A field_name fields N/A N/A N/A N/A exclude N/A field_name exclude N/A N/A N/A N/A instance N/A field_name N/A cleaned_data N/A field_name N/A commit N/A N/A N/A N/A instance save validate True N/A instance N/A get_field_type_from_document N/A N/A instance field_name N/A N/A N/A field_type N/A N/A instance structure N/A field_name N/A N/A isinstance field_type list N/A N/A field_type list N/A N/A isinstance field_type dict N/A N/A field_type dict N/A field_type N/A value_from_document N/A N/A instance field_name N/A N/A N/A field_type N/A get_field_type_from_document instance field_name N/A N/A field_type N/A list dict N/A N/A N/A N/A json dumps N/A instance N/A field_name N/A N/A instance N/A field_name N/A document_to_dict N/A N/A instance fields exclude N/A None None N/A N/A 
    Returns a dict containing the data in ``instance`` suitable for passing as
    a Form's ``initial`` keyword argument.

    ``fields`` is an optional list of field names. If provided, only the named
    fields will be included in the returned dict.

    ``exclude`` is an optional list of field names. If provided, the named
    fields will be excluded from the returned dict, even if they are listed in
    the ``fields`` argument.
     N/A structure N/A instance structure N/A data N/A N/A field_name N/A N/A structure keys N/A N/A N/A fields N/A N/A field_name fields N/A N/A N/A N/A exclude N/A field_name exclude N/A N/A N/A N/A data N/A field_name N/A value_from_document instance field_name N/A data N/A get_default_form_field_types N/A N/A document field_name field_type N/A N/A N/A default_form_field_types N/A bool int float str unicode N/A datetime datetime N/A datetime date N/A datetime time list dict N/A forms BooleanField N/A forms IntegerField N/A forms FloatField N/A forms CharField N/A forms CharField N/A forms DateTimeField N/A forms DateField N/A forms TimeField JsonListField JsonField N/A N/A default_form_field_types N/A field_type N/A formfield_for_document_field N/A N/A document field_name form_class N/A N/A forms CharField kwargs N/A N/A field_type N/A get_field_type_from_document document field_name N/A FormField N/A get_default_form_field_types document field_name field_type N/A defaults N/A required N/A field_name N/A document required_fields N/A N/A field_type list N/A N/A N/A defaults N/A initial [] N/A N/A field_type dict N/A N/A N/A defaults N/A initial {} N/A N/A field_name N/A document default_values N/A N/A default_value N/A N/A document default_values N/A field_name N/A N/A callable default_value N/A N/A default_value N/A default_value N/A N/A defaults N/A initial default_value N/A N/A N/A defaults update kwargs N/A formfield N/A FormField defaults N/A formfield N/A fields_for_document N/A N/A document fields exclude formfield_callback N/A None None None N/A N/A 
    Returns a ``SortedDict`` containing form fields for the given model.

    ``fields`` is an optional list of field names. If provided, only the named
    fields will be included in the returned fields.

    ``exclude`` is an optional list of field names. If provided, the named
    fields will be excluded from the returned fields, even if they are listed
    in the ``fields`` argument.
     N/A field_list N/A N/A structure N/A document structure N/A N/A field_name field_type N/A N/A structure items N/A N/A N/A fields N/A N/A field_name fields N/A N/A N/A N/A exclude N/A field_name exclude N/A N/A N/A form_field None N/A formfield_callback N/A N/A form_field N/A formfield_callback document field_name N/A N/A form_field N/A N/A form_field N/A formfield_for_document_field document field_name N/A form_field N/A N/A N/A N/A field_list append N/A field_name form_field N/A field_dict N/A SortedDict field_list N/A fields N/A N/A field_dict N/A SortedDict N/A N/A f N/A N/A field_dict get f N/A f fields N/A N/A exclude N/A exclude N/A f exclude N/A field_dict N/A DocumentFormOptions N/A object N/A __init__ N/A N/A self options N/A None N/A N/A N/A N/A N/A self document N/A getattr options document N/A N/A N/A AttributeError N/A N/A N/A AttributeError DocumentForm must specify a document class. N/A N/A N/A N/A N/A self document collection N/A N/A N/A AttributeError N/A N/A N/A N/A N/A TypeError Document must not be bound to a collection. N/A N/A self fields N/A getattr options fields None N/A N/A self exclude N/A getattr options exclude None N/A N/A DocumentFormMetaclass N/A type N/A __new__ N/A N/A cls name bases attrs N/A N/A N/A formfield_callback N/A N/A attrs pop formfield_callback None N/A N/A N/A parents N/A b N/A b bases N/A issubclass b DocumentForm N/A N/A N/A NameError N/A N/A parents None N/A declared_fields N/A get_declared_fields bases attrs False N/A new_class N/A N/A N/A super DocumentFormMetaclass cls __new__ cls name bases attrs N/A N/A parents N/A N/A new_class N/A opts N/A new_class _meta N/A DocumentFormOptions N/A getattr new_class Meta None N/A N/A opts document N/A N/A fields N/A fields_for_document N/A opts document N/A opts fields N/A opts exclude formfield_callback N/A N/A N/A fields update declared_fields N/A N/A fields declared_fields N/A N/A new_class declared_fields declared_fields N/A N/A new_class base_fields fields N/A new_class N/A N/A BaseDocumentForm N/A BaseForm N/A __init__ N/A N/A self data files auto_id prefix initial error_class label_suffix empty_permitted instance collection N/A None None id_%s None None ErrorList : False None None N/A N/A opts N/A self _meta N/A N/A instance None N/A N/A N/A collection None N/A N/A N/A TypeError Collection must be supplied for an unbound DocumentForm N/A N/A self instance N/A N/A opts document collection collection N/A object_data N/A N/A N/A N/A self instance instance N/A N/A N/A N/A N/A self instance collection N/A N/A N/A AttributeError N/A N/A N/A AssertionError Instance must be bound to a collection. N/A object_data N/A document_to_dict instance N/A opts fields N/A opts exclude N/A N/A initial None N/A N/A N/A N/A object_data update initial N/A N/A N/A N/A super BaseDocumentForm self __init__ data files auto_id prefix object_data error_class label_suffix empty_permitted N/A save N/A N/A self commit N/A True N/A N/A N/A N/A N/A N/A self instance get _id None None N/A N/A fail_message created N/A N/A fail_message changed N/A N/A save_instance self N/A self instance N/A N/A self _meta fields fail_message commit exclude N/A N/A self _meta exclude N/A N/A N/A save alters_data True N/A DocumentForm N/A BaseDocumentForm N/A N/A __metaclass__ DocumentFormMetaclass N/A documentform_factory N/A N/A document form fields exclude formfield_callback N/A DocumentForm None None None N/A N/A N/A N/A N/A document collection N/A N/A N/A AttributeError N/A N/A N/A N/A N/A TypeError Document must not be bound. N/A attrs N/A document document N/A N/A fields None N/A N/A N/A attrs N/A fields fields N/A N/A exclude None N/A N/A N/A attrs N/A exclude exclude N/A parent N/A object N/A N/A hasattr form Meta N/A N/A parent N/A N/A form Meta object N/A Meta N/A type Meta parent attrs N/A class_name N/A %sForm N/A document __name__ N/A form_class_attrs N/A Meta formfield_callback Meta formfield_callback N/A N/A DocumentFormMetaclass class_name N/A form form_class_attrs N/A