summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-06 08:27:24 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-06 08:27:24 +0000
commita011a494570dbe66db11e5a9bbb901d8b3e27be7 (patch)
treeb474ce804ff198522eb55447fe9b150eb4df3600 /docs
parent8fb1459b5294fb9327b241fffec8576c5aa3fc7e (diff)
Fixed #9047 -- Marked up django.core.urlresolvers.reverse() properly in the
docs. It now appears in the index. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9163 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/urls.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt
index db9a348199..aa07826d56 100644
--- a/docs/topics/http/urls.txt
+++ b/docs/topics/http/urls.txt
@@ -594,10 +594,11 @@ reverse()
---------
If you need to use something similar to the :ttag:`url` template tag in
-your code, Django provides the ``django.core.urlresolvers.reverse()``. The
-``reverse()`` function has the following signature::
+your code, Django provides the following method (in the
+``django.core.urlresolvers`` module):
- reverse(viewname, urlconf=None, args=None, kwargs=None)
+.. currentmodule:: django.core.urlresolvers
+.. function:: reverse(viewname, urlconf=None, args=None, kwargs=None)
``viewname`` is either the function name (either a function reference, or the
string version of the name, if you used that form in ``urlpatterns``) or the