mirror of
https://github.com/django/django.git
synced 2025-04-01 20:16:43 +00:00
[1.6.x] Fixed #24250 -- Corrected mistakes in FormMixin docs.
Backport of 5d193d042a3cc49033f0e8b5125913650d779496 from master
This commit is contained in:
parent
829d62bd52
commit
9316a04a9c
@ -21,6 +21,10 @@ FormMixin
|
||||
|
||||
A mixin class that provides facilities for creating and displaying forms.
|
||||
|
||||
**Mixins**
|
||||
|
||||
* :class:`django.views.generic.base.ContextMixin`
|
||||
|
||||
**Methods and Attributes**
|
||||
|
||||
.. attribute:: initial
|
||||
@ -86,20 +90,6 @@ FormMixin
|
||||
|
||||
Renders a response, providing the invalid form as context.
|
||||
|
||||
.. method:: get_context_data(**kwargs)
|
||||
|
||||
Populates a context containing the contents of ``kwargs``.
|
||||
|
||||
**Context**
|
||||
|
||||
* ``form``: The form instance that was generated for the view.
|
||||
|
||||
.. note::
|
||||
|
||||
Views mixing ``FormMixin`` must provide an implementation of
|
||||
:meth:`form_valid` and :meth:`form_invalid`.
|
||||
|
||||
|
||||
ModelFormMixin
|
||||
--------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user