summaryrefslogtreecommitdiff
path: root/docs/howto
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2014-01-22 22:26:10 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2014-01-22 22:26:10 +0100
commit05d36dc06e6d767bb28993c65a54b703f319a386 (patch)
treeed2af78f1307dda6b029d866f40bf2244705733e /docs/howto
parent79e1d6ebd70898d514a44b85648e3d24104c4243 (diff)
Always use parentheses when documenting a method with no arguments.
Diffstat (limited to 'docs/howto')
-rw-r--r--docs/howto/custom-model-fields.txt2
-rw-r--r--docs/howto/custom-template-tags.txt6
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt
index b36b7368a8..2c2f6d3d4d 100644
--- a/docs/howto/custom-model-fields.txt
+++ b/docs/howto/custom-model-fields.txt
@@ -193,7 +193,7 @@ card values plus their suits; 104 characters in total.
you want your fields to be more strict about the options they select, or to
use the simpler, more permissive behavior of the current fields.
-.. method:: Field.__init__
+.. method:: Field.__init__()
The :meth:`~django.db.models.Field.__init__` method takes the following
parameters:
diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt
index b5cbf571b7..f07ae6112f 100644
--- a/docs/howto/custom-template-tags.txt
+++ b/docs/howto/custom-template-tags.txt
@@ -118,7 +118,7 @@ your function. Example:
Registering custom filters
~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. method:: django.template.Library.filter
+.. method:: django.template.Library.filter()
Once you've written your filter definition, you need to register it with
your ``Library`` instance, to make it available to Django's template language:
@@ -157,7 +157,7 @@ are described in :ref:`filters and auto-escaping <filters-auto-escaping>` and
Template filters that expect strings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. method:: django.template.defaultfilters.stringfilter
+.. method:: django.template.defaultfilters.stringfilter()
If you're writing a template filter that only expects a string as the first
argument, you should use the decorator ``stringfilter``. This will
@@ -750,7 +750,7 @@ cannot resolve the string passed to it in the current context of the page.
Simple tags
~~~~~~~~~~~
-.. method:: django.template.Library.simple_tag
+.. method:: django.template.Library.simple_tag()
Many template tags take a number of arguments -- strings or template variables
-- and return a string after doing some processing based solely on