summaryrefslogtreecommitdiff
path: root/docs/ref/forms
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 23:28:07 +0100
commit75177681347b6e8c763f4be919908c5d3842e579 (patch)
tree418dba92db6b4923370f2fc3e454f0a9aa2f76fe /docs/ref/forms
parent126af8fa7bbb711775c3859786955ccb8f3946fb (diff)
[1.5.x] Always use parentheses when documenting a method with no arguments.
Backport of 05d36dc06e6d767bb28993c65a54b703f319a386 from master.
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/api.txt8
-rw-r--r--docs/ref/forms/validation.txt2
2 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt
index e6b0d3e6ee..98c6d91853 100644
--- a/docs/ref/forms/api.txt
+++ b/docs/ref/forms/api.txt
@@ -324,7 +324,7 @@ a form object, and each rendering method returns a Unicode object.
``as_p()``
~~~~~~~~~~
-.. method:: Form.as_p
+.. method:: Form.as_p()
``as_p()`` renders the form as a series of ``<p>`` tags, with each ``<p>``
containing one field::
@@ -341,7 +341,7 @@ a form object, and each rendering method returns a Unicode object.
``as_ul()``
~~~~~~~~~~~
-.. method:: Form.as_ul
+.. method:: Form.as_ul()
``as_ul()`` renders the form as a series of ``<li>`` tags, with each
``<li>`` containing one field. It does *not* include the ``<ul>`` or
@@ -360,7 +360,7 @@ a form object, and each rendering method returns a Unicode object.
``as_table()``
~~~~~~~~~~~~~~
-.. method:: Form.as_table
+.. method:: Form.as_table()
Finally, ``as_table()`` outputs the form as an HTML ``<table>``. This is
exactly the same as ``print``. In fact, when you ``print`` a form object,
@@ -752,7 +752,7 @@ form data *and* file data::
Testing for multipart forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. method:: Form.is_multipart
+.. method:: Form.is_multipart()
If you're writing reusable views or templates, you may not know ahead of time
whether your form is a multipart form or not. The ``is_multipart()`` method
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt
index 392ee226a8..060fa3b623 100644
--- a/docs/ref/forms/validation.txt
+++ b/docs/ref/forms/validation.txt
@@ -278,7 +278,7 @@ write a cleaning method that operates on the ``recipients`` field, like so::
Cleaning and validating fields that depend on each other
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. method:: django.forms.Form.clean
+.. method:: django.forms.Form.clean()
Suppose we add another requirement to our contact form: if the ``cc_myself``
field is ``True``, the ``subject`` must contain the word ``"help"``. We are