mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #9147 -- Added FormPreview.process_preview
customization hook. Thanks, bthomas and thalin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9810178706
commit
a9b2ac25d1
3 changed files with 23 additions and 2 deletions
|
@ -108,3 +108,16 @@ These values can be overridden for a particular form preview by setting
|
|||
:attr:`~django.contrib.formtools.FormPreview.form_template` attributes on the
|
||||
FormPreview subclass. See :file:`django/contrib/formtools/templates` for the
|
||||
default templates.
|
||||
|
||||
Advanced ``FormPreview`` methods
|
||||
================================
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. method:: FormPreview.process_preview
|
||||
|
||||
Given a validated form, performs any extra processing before displaying the
|
||||
preview page, and saves any extra data in context.
|
||||
|
||||
By default, this method is empty. It is called after the form is validated,
|
||||
but before the context is modified with hash information and rendered.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue