Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.6.x] Fixed #21264 -- Incorrect RST usage in docs

Backport of 8fc6308 from master
  • Loading branch information...
commit e3c8db61f3d1e86ac523fc76095d7f3dd1cbe760 1 parent 8f5ea9d
Bouke Haarsma authored timgraham committed
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
3  docs/topics/http/shortcuts.txt
@@ -169,7 +169,8 @@ This example is equivalent to::
169 169
 
170 170
    The arguments could be:
171 171
 
172  
-   * A model: the model's `get_absolute_url()` function will be called.
  172
+   * A model: the model's :meth:`~django.db.models.Model.get_absolute_url()`
  173
+     function will be called.
173 174
 
174 175
    * A view name, possibly with arguments: :func:`urlresolvers.reverse
175 176
      <django.core.urlresolvers.reverse>` will be used to reverse-resolve the

0 notes on commit e3c8db6

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