Small tweaks to docstrings from [4700]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-03-16 15:20:37 +00:00
parent b14ff2f94d
commit 515337fa3b
1 changed files with 4 additions and 4 deletions

View File

@ -582,7 +582,7 @@ ifequal = register.tag(ifequal)
#@register.tag #@register.tag
def ifnotequal(parser, token): def ifnotequal(parser, token):
"""Output the contents of the block if the two arguments are not equal. See ifequal""" """Output the contents of the block if the two arguments are not equal. See ifequal."""
return do_ifequal(parser, token, True) return do_ifequal(parser, token, True)
ifnotequal = register.tag(ifnotequal) ifnotequal = register.tag(ifnotequal)
@ -901,7 +901,7 @@ def url(parser, token):
""" """
Returns an absolute URL matching given view with its parameters. Returns an absolute URL matching given view with its parameters.
This is a way to define links that aren't tied to a particular url configuration:: This is a way to define links that aren't tied to a particular URL configuration::
{% url path.to.some_view arg1,arg2,name1=value1 %} {% url path.to.some_view arg1,arg2,name1=value1 %}
@ -912,11 +912,11 @@ def url(parser, token):
URL. All arguments for the URL should be present. URL. All arguments for the URL should be present.
For example if you have a view ``app_name.client`` taking client's id and For example if you have a view ``app_name.client`` taking client's id and
the corresponding line in a urlconf looks like this:: the corresponding line in a URLconf looks like this::
('^client/(\d+)/$', 'app_name.client') ('^client/(\d+)/$', 'app_name.client')
and this app's urlconf is included into the project's urlconf under some and this app's URLconf is included into the project's URLconf under some
path:: path::
('^clients/', include('project_name.app_name.urls')) ('^clients/', include('project_name.app_name.urls'))