Explorar o código

Fixed #24250 -- Corrected mistakes in FormMixin docs.

Tim Graham %!s(int64=10) %!d(string=hai) anos
pai
achega
5d193d042a
Modificáronse 1 ficheiros con 4 adicións e 14 borrados
  1. 4 14
      docs/ref/class-based-views/mixins-editing.txt

+ 4 - 14
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
 --------------