Fixed a couple more ReST errors I found in docs/generic_views.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2933110569
commit
7d1b483d07
|
@ -205,11 +205,11 @@ If ``template_name`` isn't specified, this view will use the template
|
||||||
``<app_label>/<model_name>_archive.html`` by default, where:
|
``<app_label>/<model_name>_archive.html`` by default, where:
|
||||||
|
|
||||||
* ``<model_name>`` is your model's name in all lowercase. For a model
|
* ``<model_name>`` is your model's name in all lowercase. For a model
|
||||||
``StaffMember``, that'd be ``staffmember``.
|
``StaffMember``, that'd be ``staffmember``.
|
||||||
|
|
||||||
* ``<app_label>`` is the right-most part of the full Python path to
|
* ``<app_label>`` is the right-most part of the full Python path to
|
||||||
your model's app. For example, if your model lives in
|
your model's app. For example, if your model lives in
|
||||||
``apps/blog/models.py``, that'd be ``blog``.
|
``apps/blog/models.py``, that'd be ``blog``.
|
||||||
|
|
||||||
**Template context:**
|
**Template context:**
|
||||||
|
|
||||||
|
@ -638,7 +638,7 @@ future, the view will throw a 404 error by default, unless you set
|
||||||
the view's template. See the `RequestContext docs`_.
|
the view's template. See the `RequestContext docs`_.
|
||||||
|
|
||||||
* ``template_object_name``: Designates the name of the template variable
|
* ``template_object_name``: Designates the name of the template variable
|
||||||
to use in the template context. By default, this is ``'object'``.
|
to use in the template context. By default, this is ``'object'``.
|
||||||
|
|
||||||
* ``mimetype``: The MIME type to use for the resulting document. Defaults
|
* ``mimetype``: The MIME type to use for the resulting document. Defaults
|
||||||
to the value of the ``DEFAULT_CONTENT_TYPE`` setting.
|
to the value of the ``DEFAULT_CONTENT_TYPE`` setting.
|
||||||
|
@ -824,7 +824,7 @@ A page representing an individual object.
|
||||||
the view's template. See the `RequestContext docs`_.
|
the view's template. See the `RequestContext docs`_.
|
||||||
|
|
||||||
* ``template_object_name``: Designates the name of the template variable
|
* ``template_object_name``: Designates the name of the template variable
|
||||||
to use in the template context. By default, this is ``'object'``.
|
to use in the template context. By default, this is ``'object'``.
|
||||||
|
|
||||||
* ``mimetype``: The MIME type to use for the resulting document. Defaults
|
* ``mimetype``: The MIME type to use for the resulting document. Defaults
|
||||||
to the value of the ``DEFAULT_CONTENT_TYPE`` setting.
|
to the value of the ``DEFAULT_CONTENT_TYPE`` setting.
|
||||||
|
|
Loading…
Reference in New Issue