diff options
| author | Bouke Haarsma <bouke@webatoom.nl> | 2013-10-14 13:59:56 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-14 08:15:50 -0400 |
| commit | e3c8db61f3d1e86ac523fc76095d7f3dd1cbe760 (patch) | |
| tree | 51d043992cd04e8722be713fd697dbb48e2faa76 /docs | |
| parent | 8f5ea9d19b7a50839dead7eaf2ce6566e336067d (diff) | |
[1.6.x] Fixed #21264 -- Incorrect RST usage in docs
Backport of 8fc63087f6 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/class-based-views/index.txt | 7 | ||||
| -rw-r--r-- | docs/topics/http/shortcuts.txt | 3 |
2 files changed, 6 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 5c8725172a..a6670531da 100644 --- a/docs/topics/http/shortcuts.txt +++ b/docs/topics/http/shortcuts.txt @@ -169,7 +169,8 @@ This example is equivalent to:: The arguments could be: - * A model: the model's `get_absolute_url()` function will be called. + * 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 <django.core.urlresolvers.reverse>` will be used to reverse-resolve the |
