summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-01-01 18:45:57 -0500
committerTim Graham <timograham@gmail.com>2013-01-01 18:47:12 -0500
commit520a3f090c0541ddfaf3e949ca1edc6a113b6305 (patch)
tree4d4ded76fce68f4781a851c9f444d79caa72705b /docs
parentfff9752cb3164591a61816a35a967b5e7dbc2592 (diff)
[1.5.X] Fixed #19520 - Corrected some misleading docs about template_name_suffix.
Thanks jnns for the report. Backport of 0d3f16b12e from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/class-based-views/generic-editing.txt30
1 files changed, 15 insertions, 15 deletions
diff --git a/docs/ref/class-based-views/generic-editing.txt b/docs/ref/class-based-views/generic-editing.txt
index 7ce5c1d1be..789dc2f84f 100644
--- a/docs/ref/class-based-views/generic-editing.txt
+++ b/docs/ref/class-based-views/generic-editing.txt
@@ -97,11 +97,11 @@ CreateView
.. attribute:: template_name_suffix
- The CreateView page displayed to a GET request uses a
- ``template_name_suffix`` of ``'_form.html'``. For
- example, changing this attribute to ``'_create_form.html'`` for a view
- creating objects for the the example `Author` model would cause the the
- default `template_name` to be ``'myapp/author_create_form.html'``.
+ The ``CreateView`` page displayed to a ``GET`` request uses a
+ ``template_name_suffix`` of ``'_form'``. For
+ example, changing this attribute to ``'_create_form'`` for a view
+ creating objects for the example ``Author`` model would cause the
+ default ``template_name`` to be ``'myapp/author_create_form.html'``.
**Example views.py**::
@@ -139,11 +139,11 @@ UpdateView
.. attribute:: template_name_suffix
- The UpdateView page displayed to a GET request uses a
- ``template_name_suffix`` of ``'_form.html'``. For
- example, changing this attribute to ``'_update_form.html'`` for a view
- updating objects for the the example `Author` model would cause the the
- default `template_name` to be ``'myapp/author_update_form.html'``.
+ The ``UpdateView`` page displayed to a ``GET`` request uses a
+ ``template_name_suffix`` of ``'_form'``. For
+ example, changing this attribute to ``'_update_form'`` for a view
+ updating objects for the example ``Author`` model would cause the
+ default ``template_name`` to be ``'myapp/author_update_form.html'``.
**Example views.py**::
@@ -180,11 +180,11 @@ DeleteView
.. attribute:: template_name_suffix
- The DeleteView page displayed to a GET request uses a
- ``template_name_suffix`` of ``'_confirm_delete.html'``. For
- example, changing this attribute to ``'_check_delete.html'`` for a view
- deleting objects for the the example `Author` model would cause the the
- default `template_name` to be ``'myapp/author_check_delete.html'``.
+ The ``DeleteView`` page displayed to a ``GET`` request uses a
+ ``template_name_suffix`` of ``'_confirm_delete'``. For
+ example, changing this attribute to ``'_check_delete'`` for a view
+ deleting objects for the example ``Author`` model would cause the
+ default ``template_name`` to be ``'myapp/author_check_delete.html'``.
**Example views.py**::