diff options
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/api.txt | 8 | ||||
| -rw-r--r-- | docs/ref/forms/validation.txt | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index c8f302b924..fbc025f18c 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -396,7 +396,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:: @@ -413,7 +413,7 @@ containing one field:: ``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 @@ -432,7 +432,7 @@ flexibility:: ``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, @@ -864,7 +864,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 a07cb93183..569e7e77e7 100644 --- a/docs/ref/forms/validation.txt +++ b/docs/ref/forms/validation.txt @@ -329,7 +329,7 @@ from , which is turned into a form-wide error that is available through the 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 |
