From 6454716264163b4693c03168ec56ea894ea511f2 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 3 Feb 2015 08:41:57 -0500 Subject: [PATCH] [1.8.x] Fixed #24250 -- Corrected mistakes in FormMixin docs. Backport of 5d193d042a3cc49033f0e8b5125913650d779496 from master --- docs/ref/class-based-views/mixins-editing.txt | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/docs/ref/class-based-views/mixins-editing.txt b/docs/ref/class-based-views/mixins-editing.txt index 0bfbcbd3f7..024b89cd2b 100644 --- a/docs/ref/class-based-views/mixins-editing.txt +++ b/docs/ref/class-based-views/mixins-editing.txt @@ -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 @@ -87,20 +91,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 --------------