class PasswordChangeForm(SetPasswordForm):
Known subclasses: django.contrib.admin.forms.AdminPasswordChangeForm
Method | clean_old_password |
Validate that the old_password field is correct. |
Class Variable | error_messages |
Undocumented |
Class Variable | field_order |
Undocumented |
Class Variable | old_password |
Undocumented |
Inherited from SetPasswordForm
:
Method | __init__ |
Undocumented |
Method | clean_new_password2 |
Undocumented |
Method | save |
Undocumented |
Class Variable | new_password1 |
Undocumented |
Class Variable | new_password2 |
Undocumented |
Instance Variable | user |
Undocumented |
Inherited from BaseForm
(via SetPasswordForm
, Form
):
Method | __getitem__ |
Return a BoundField with the given name. |
Method | __iter__ |
Yield the form's fields as BoundField objects. |
Method | __repr__ |
Undocumented |
Method | _bound_items |
Yield (name, bf) pairs, where bf is a BoundField object. |
Method | _clean_fields |
Undocumented |
Method | _clean_form |
Undocumented |
Method | _html_output |
Output HTML. Used by as_table(), as_ul(), as_p(). |
Method | _post_clean |
An internal hook for performing additional cleaning after form cleaning is complete. Used for model validation in model forms. |
Method | _widget_data_value |
Undocumented |
Method | add_error |
Update the content of self._errors . |
Method | add_initial_prefix |
Add an 'initial' prefix for checking dynamic initial values. |
Method | add_prefix |
Return the field name with a prefix appended, if this Form has a prefix set. |
Method | clean |
No summary |
Method | full_clean |
Clean all of self.data and populate self._errors and self.cleaned_data. |
Method | get_context |
Undocumented |
Method | get_initial_for_field |
Return initial data for field on form. Use initial data from the form or the field, in that order. Evaluate callable values. |
Method | has_changed |
Return True if data differs from initial. |
Method | has_error |
Undocumented |
Method | hidden_fields |
Return a list of all the BoundField objects that are hidden fields. Useful for manual form layout in templates. |
Method | is_multipart |
Return True if the form needs to be multipart-encoded, i.e. it has FileInput, or False otherwise. |
Method | is_valid |
Return True if the form has no errors, or False otherwise. |
Method | non_field_errors |
Return an ErrorList of errors that aren't associated with a particular field -- i.e., from Form.clean(). Return an empty ErrorList if there are none. |
Method | order_fields |
Rearrange the fields according to field_order. |
Method | visible_fields |
Return a list of BoundField objects that aren't hidden fields. The opposite of the hidden_fields() method. |
Class Variable | default_renderer |
Undocumented |
Class Variable | template_name |
Undocumented |
Class Variable | template_name_label |
Undocumented |
Class Variable | template_name_p |
Undocumented |
Class Variable | template_name_table |
Undocumented |
Class Variable | template_name_ul |
Undocumented |
Instance Variable | _bound_fields_cache |
Undocumented |
Instance Variable | _errors |
Undocumented |
Instance Variable | auto_id |
Undocumented |
Instance Variable | cleaned_data |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | empty_permitted |
Undocumented |
Instance Variable | error_class |
Undocumented |
Instance Variable | fields |
Undocumented |
Instance Variable | files |
Undocumented |
Instance Variable | initial |
Undocumented |
Instance Variable | is_bound |
Undocumented |
Instance Variable | label_suffix |
Undocumented |
Instance Variable | prefix |
Undocumented |
Instance Variable | renderer |
Undocumented |
Instance Variable | use_required_attribute |
Undocumented |
Property | changed_data |
Undocumented |
Property | errors |
Return an ErrorDict for the data provided for the form. |
Property | media |
Return all media required to render the widgets on this form. |
Inherited from RenderableFormMixin
(via SetPasswordForm
, Form
, BaseForm
):
Method | as_p |
Render as <p> elements. |
Method | as_table |
Render as <tr> elements excluding the surrounding <table> tag. |
Method | as_ul |
Render as <li> elements excluding the surrounding <ul> tag. |
Inherited from RenderableMixin
(via SetPasswordForm
, Form
, BaseForm
, RenderableFormMixin
):
Method | render |
Undocumented |