mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed inaccuracies in generic mixins documentation.
This commit is contained in:
parent
98dd8dd02e
commit
a5391db76a
2 changed files with 17 additions and 4 deletions
|
@ -12,7 +12,7 @@ The following mixins are used to construct Django's editing views:
|
|||
.. note::
|
||||
|
||||
Examples of how these are combined into editing views can be found at
|
||||
the documentation on ``Generic editing views``.
|
||||
the documentation on :doc:`/ref/class-based-views/generic-editing`.
|
||||
|
||||
FormMixin
|
||||
---------
|
||||
|
@ -112,9 +112,7 @@ ModelFormMixin
|
|||
mixin have access to the
|
||||
:attr:`~django.views.generic.detail.SingleObjectMixin.model` and
|
||||
:attr:`~django.views.generic.detail.SingleObjectMixin.queryset` attributes,
|
||||
describing the type of object that the ``ModelForm`` is manipulating. The
|
||||
view also provides ``self.object``, the instance being manipulated. If the
|
||||
instance is being created, ``self.object`` will be ``None``.
|
||||
describing the type of object that the ``ModelForm`` is manipulating.
|
||||
|
||||
**Mixins**
|
||||
|
||||
|
@ -218,6 +216,10 @@ ProcessFormView
|
|||
The ``PUT`` action is also handled and just passes all parameters
|
||||
through to :meth:`post`.
|
||||
|
||||
|
||||
DeletionMixin
|
||||
-------------
|
||||
|
||||
.. class:: django.views.generic.edit.DeletionMixin
|
||||
|
||||
Enables handling of the ``DELETE`` http action.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue