diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2014-01-22 22:26:10 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-01-22 23:00:06 +0100 |
| commit | 6bf05c0267b388bdf6f2bda6f1915c1ac8a02b35 (patch) | |
| tree | 3855a1de9447780739c81e4383e95fb74a54d273 /docs/howto | |
| parent | 6bca149af5b8e2d6fb6fe19bdb53904f07248033 (diff) | |
[1.6.x] Always use parentheses when documenting a method with no arguments.
Backport of 05d36dc06e6d767bb28993c65a54b703f319a386 from master.
Diffstat (limited to 'docs/howto')
| -rw-r--r-- | docs/howto/custom-model-fields.txt | 2 | ||||
| -rw-r--r-- | docs/howto/custom-template-tags.txt | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt index 34c609d277..0d4b96ec02 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 90db868ce3..527af3fd8c 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -117,7 +117,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: @@ -156,7 +156,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 @@ -749,7 +749,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 |
