Skip to content

Commit

Permalink
Merge pull request django#176 from benspaulding/ticket_18521
Browse files Browse the repository at this point in the history
Add reST role to templates named in some view docs.
  • Loading branch information
adrianholovaty committed Jul 6, 2012
2 parents 70ac570 + 24dec9e commit 8855f93
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions django/contrib/comments/views/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def flag(request, comment_id, next=None):
"""
Flags a comment. Confirmation on GET, action on POST.
Templates: `comments/flag.html`,
Templates: :template:`comments/flag.html`,
Context:
comment
the flagged `comments.comment` object
Expand All @@ -43,7 +43,7 @@ def delete(request, comment_id, next=None):
Deletes a comment. Confirmation on GET, action on POST. Requires the "can
moderate comments" permission.
Templates: `comments/delete.html`,
Templates: :template:`comments/delete.html`,
Context:
comment
the flagged `comments.comment` object
Expand All @@ -70,7 +70,7 @@ def approve(request, comment_id, next=None):
Approve a comment (that is, mark it as public and non-removed). Confirmation
on GET, action on POST. Requires the "can moderate comments" permission.
Templates: `comments/approve.html`,
Templates: :template:`comments/approve.html`,
Context:
comment
the `comments.comment` object for approval
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/comments/views/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def confirmed(request):
confirmed.__doc__ = textwrap.dedent("""\
%s
Templates: `%s``
Templates: :template:`%s``
Context:
comment
The posted comment
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/flatpages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def flatpage(request, url):
Models: `flatpages.flatpages`
Templates: Uses the template defined by the ``template_name`` field,
or `flatpages/default.html` if template_name is not defined.
or :template:`flatpages/default.html` if template_name is not defined.
Context:
flatpage
`flatpages.flatpages` object
Expand Down
6 changes: 3 additions & 3 deletions django/views/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def page_not_found(request, template_name='404.html'):
"""
Default 404 handler.
Templates: `404.html`
Templates: :template:`404.html`
Context:
request_path
The path of the requested URL (e.g., '/app/pages/bad_page/')
Expand All @@ -26,7 +26,7 @@ def server_error(request, template_name='500.html'):
"""
500 error handler.
Templates: `500.html`
Templates: :template:`500.html`
Context: None
"""
t = loader.get_template(template_name) # You need to create a 500.html template.
Expand All @@ -41,7 +41,7 @@ def permission_denied(request, template_name='403.html'):
"""
Permission denied (403) handler.
Templates: `403.html`
Templates: :template:`403.html`
Context: None
If the template does not exist, an Http403 response containing the text
Expand Down

0 comments on commit 8855f93

Please sign in to comment.