summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBouke Haarsma <bouke@webatoom.nl>2013-10-14 13:59:56 +0200
committerTim Graham <timograham@gmail.com>2013-10-14 08:14:27 -0400
commit8fc63087f6ad888b68dff17ee0c527774332d932 (patch)
treed19ce7ac5e7746588d6ea404a7fe1fbc2a68ebe3
parent13ddf0e0027b7646953a4c7d872ca682667c9b3f (diff)
Fixed #21264 -- Incorrect RST usage in docs
-rw-r--r--docs/topics/class-based-views/index.txt7
-rw-r--r--docs/topics/http/shortcuts.txt2
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/topics/class-based-views/index.txt b/docs/topics/class-based-views/index.txt
index b2fa93e05f..84e4597842 100644
--- a/docs/topics/class-based-views/index.txt
+++ b/docs/topics/class-based-views/index.txt
@@ -69,9 +69,10 @@ and override the template name::
template_name = "about.html"
Then we just need to add this new view into our URLconf.
-`~django.views.generic.base.TemplateView` is a class, not a function, so we
-point the URL to the :meth:`~django.views.generic.base.View.as_view` class
-method instead, which provides a function-like entry to class-based views::
+:class:`~django.views.generic.base.TemplateView` is a class, not a function,
+so we point the URL to the :meth:`~django.views.generic.base.View.as_view`
+class method instead, which provides a function-like entry to class-based
+views::
# urls.py
from django.conf.urls import patterns
diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt
index 27e8817884..6a99a4b406 100644
--- a/docs/topics/http/shortcuts.txt
+++ b/docs/topics/http/shortcuts.txt
@@ -191,7 +191,7 @@ If you want to override the :setting:`TEMPLATE_DIRS` setting, use the
The arguments could be:
- * A model: the model's `:meth:`~django.db.models.Model.get_absolute_url()`
+ * A model: the model's :meth:`~django.db.models.Model.get_absolute_url()`
function will be called.
* A view name, possibly with arguments: :func:`urlresolvers.reverse