Ticket #9147: process_preview_doc.diff

File process_preview_doc.diff, 881 bytes (added by thalin, 15 years ago)

Basic docs for process_preview; indicating new in 1.2

  • docs/ref/contrib/formtools/form-preview.txt

     
    108108:attr:`~django.contrib.formtools.FormPreview.form_template` attributes on the
    109109FormPreview subclass. See :file:`django/contrib/formtools/templates` for the
    110110default templates.
     111
     112Advanced ``FormPreview`` methods
     113================================
     114
     115.. versionadded:: 1.2
     116
     117.. method:: FormPreview.process_preview
     118
     119    Given a validated form, performs any extra processing before displaying the
     120    preview page, and saves any extra data in context.
     121
     122    By default, this method is empty.  It is called after the form is validated
     123    and before the context is modified with hash information and rendered.
Back to Top