From fef8adefe173e809c582a6611b6eb58577e0c9f0 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 10 Oct 2005 22:23:44 +0000 Subject: [PATCH] Fixed #605 -- Fixed template-name errors in docs/generic_views.txt. Thanks, cygnus@cprogrammer.org git-svn-id: http://code.djangoproject.com/svn/django/trunk@828 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/generic_views.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/generic_views.txt b/docs/generic_views.txt index 4201423c28..1c0de07a7a 100644 --- a/docs/generic_views.txt +++ b/docs/generic_views.txt @@ -115,7 +115,7 @@ The date-based generic functions are: Yearly archive. Requires that the ``year`` argument be present in the URL pattern. - Uses the template ``app_label/module_name__archive_year`` by default. + Uses the template ``app_label/module_name_archive_year`` by default. Has the following template context: @@ -134,7 +134,7 @@ The date-based generic functions are: default, which is a three-letter month abbreviation. To change it to use numbers, use ``"%m"``. - Uses the template ``app_label/module_name__archive_month`` by default. + Uses the template ``app_label/module_name_archive_month`` by default. Has the following template context: @@ -151,7 +151,7 @@ The date-based generic functions are: also pass ``day_format``, which defaults to ``"%d"`` (day of the month as a decimal number, 1-31). - Uses the template ``app_label/module_name__archive_day`` by default. + Uses the template ``app_label/module_name_archive_day`` by default. Has the following template context: @@ -274,7 +274,7 @@ The create/update/delete views are: be interpolated against the object's field attributes. For example, you could use ``post_save_redirect="/polls/%(slug)s/"``. - Uses the template ``app_label/module_name__form`` by default. This is the + Uses the template ``app_label/module_name_form`` by default. This is the same template as the ``update_object`` view below. Your template can tell the different by the presence or absence of ``{{ object }}`` in the context. @@ -296,7 +296,7 @@ The create/update/delete views are: ``list_detail.object_detail`` does (see above), and the same ``post_save_redirect`` as ``create_object`` does. - Uses the template ``app_label/module_name__form`` by default. + Uses the template ``app_label/module_name_form`` by default. Has the following template context: