class documentation
class PasswordResetForm(forms.Form): (source)
Undocumented
Method | get |
Given an email, return matching user(s) who should receive a reset. |
Method | save |
Generate a one-use only link for resetting password and send it to the user. |
Method | send |
Send a django.core.mail.EmailMultiAlternatives to `to_email`. |
Class Variable | email |
Undocumented |
Inherited from BaseForm
(via Form
):
Method | __getitem__ |
Return a BoundField with the given name. |
Method | __init__ |
Undocumented |
Method | __iter__ |
Yield the form's fields as BoundField objects. |
Method | __repr__ |
Undocumented |
Method | add |
Update the content of `self._errors`. |
Method | add |
Add an 'initial' prefix for checking dynamic initial values. |
Method | add |
Return the field name with a prefix appended, if this Form has a prefix set. |
Method | clean |
Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named '__all__'. |
Method | full |
Clean all of self.data and populate self._errors and self.cleaned_data. |
Method | get |
Undocumented |
Method | get |
Return initial data for field on form. Use initial data from the form or the field, in that order. Evaluate callable values. |
Method | has |
Return True if data differs from initial. |
Method | has |
Undocumented |
Method | hidden |
Return a list of all the BoundField objects that are hidden fields. Useful for manual form layout in templates. |
Method | is |
Return True if the form needs to be multipart-encoded, i.e. it has FileInput, or False otherwise. |
Method | is |
Return True if the form has no errors, or False otherwise. |
Method | non |
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 |
Rearrange the fields according to field_order. |
Method | visible |
Return a list of BoundField objects that aren't hidden fields. The opposite of the hidden_fields() method. |
Class Variable | default |
Undocumented |
Class Variable | field |
Undocumented |
Class Variable | template |
Undocumented |
Class Variable | template |
Undocumented |
Class Variable | template |
Undocumented |
Class Variable | template |
Undocumented |
Class Variable | template |
Undocumented |
Instance Variable | auto |
Undocumented |
Instance Variable | cleaned |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | empty |
Undocumented |
Instance Variable | error |
Undocumented |
Instance Variable | fields |
Undocumented |
Instance Variable | files |
Undocumented |
Instance Variable | initial |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | label |
Undocumented |
Instance Variable | prefix |
Undocumented |
Instance Variable | renderer |
Undocumented |
Instance Variable | use |
Undocumented |
Property | changed |
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. |
Property | template |
Undocumented |
Method | _bound |
Yield (name, bf) pairs, where bf is a BoundField object. |
Method | _clean |
Undocumented |
Method | _clean |
Undocumented |
Method | _html |
Output HTML. Used by as_table(), as_ul(), as_p(). |
Method | _post |
An internal hook for performing additional cleaning after form cleaning is complete. Used for model validation in model forms. |
Method | _widget |
Undocumented |
Instance Variable | _bound |
Undocumented |
Instance Variable | _errors |
Undocumented |
Inherited from RenderableFormMixin
(via Form
, BaseForm
):
Method | as |
Render as <div> elements. |
Method | as |
Render as <p> elements. |
Method | as |
Render as <tr> elements excluding the surrounding <table> tag. |
Method | as |
Render as <li> elements excluding the surrounding <ul> tag. |
Inherited from RenderableMixin
(via Form
, BaseForm
, RenderableFormMixin
):
Method | render |
Undocumented |
Given an email, return matching user(s) who should receive a reset. This allows subclasses to more easily customize the default policies that prevent inactive users and users with unusable passwords from resetting their password.
def save(self, domain_override=None, subject_template_name='registration/password_reset_subject.txt', email_template_name='registration/password_reset_email.html', use_https=False, token_generator=default_token_generator, from_email=None, request=None, html_email_template_name=None, extra_email_context=None):
(source)
¶
Generate a one-use only link for resetting password and send it to the user.