Package couchdbkit :: Package ext :: Package django :: Module forms :: Class BaseDocumentForm
[hide private]
[frames] | no frames]

Class BaseDocumentForm

source code

                         object --+        
                                  |        
django.utils.encoding.StrAndUnicode --+    
                                      |    
            django.forms.forms.BaseForm --+
                                          |
                                         BaseDocumentForm
Known Subclasses:

Base Document Form object

Instance Methods [hide private]
 
__init__(self, data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False, instance=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
save(self, commit=True, dynamic=True)
Saves this ``form``'s cleaned_data into document instance ``self.instance``.
source code

Inherited from django.forms.forms.BaseForm: __getitem__, __iter__, __unicode__, add_initial_prefix, add_prefix, as_p, as_table, as_ul, clean, full_clean, has_changed, hidden_fields, is_multipart, is_valid, non_field_errors, visible_fields

Inherited from django.forms.forms.BaseForm (private): _clean_fields, _clean_form, _get_changed_data, _get_errors, _get_media, _html_output, _post_clean, _raw_value

Inherited from django.utils.encoding.StrAndUnicode: __str__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from django.forms.forms.BaseForm: changed_data, errors, media

Inherited from object: __class__

Method Details [hide private]

__init__(self, data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False, instance=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

save(self, commit=True, dynamic=True)

source code 

Saves this ``form``'s cleaned_data into document instance ``self.instance``.

If commit=True, then the changes to ``instance`` will be saved to the database. Returns ``instance``.