Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #21264 -- Incorrect RST usage in docs

  • Loading branch information...
commit 8fc63087f6ad888b68dff17ee0c527774332d932 1 parent 13ddf0e
Bouke Haarsma authored October 14, 2013 timgraham committed October 14, 2013
7  docs/topics/class-based-views/index.txt
@@ -69,9 +69,10 @@ and override the template name::
69 69
         template_name = "about.html"
70 70
 
71 71
 Then we just need to add this new view into our URLconf.
72  
-`~django.views.generic.base.TemplateView` is a class, not a function, so we
73  
-point the URL to the :meth:`~django.views.generic.base.View.as_view` class
74  
-method instead, which provides a function-like entry to class-based views::
  72
+:class:`~django.views.generic.base.TemplateView` is a class, not a function,
  73
+so we point the URL to the :meth:`~django.views.generic.base.View.as_view`
  74
+class method instead, which provides a function-like entry to class-based
  75
+views::
75 76
 
76 77
     # urls.py
77 78
     from django.conf.urls import patterns
2  docs/topics/http/shortcuts.txt
@@ -191,7 +191,7 @@ If you want to override the :setting:`TEMPLATE_DIRS` setting, use the
191 191
 
192 192
    The arguments could be:
193 193
 
194  
-   * A model: the model's `:meth:`~django.db.models.Model.get_absolute_url()`
  194
+   * A model: the model's :meth:`~django.db.models.Model.get_absolute_url()`
195 195
      function will be called.
196 196
 
197 197
    * A view name, possibly with arguments: :func:`urlresolvers.reverse

0 notes on commit 8fc6308

Please sign in to comment.
Something went wrong with that request. Please try again.