diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt index 9ff52ccfdc..6bfd71773f 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 d7f760faaf..a225bf6bd4 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 ` 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 @@ -733,7 +733,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 diff --git a/docs/ref/contrib/comments/moderation.txt b/docs/ref/contrib/comments/moderation.txt index a7138dda53..dcd8b79f01 100644 --- a/docs/ref/contrib/comments/moderation.txt +++ b/docs/ref/contrib/comments/moderation.txt @@ -210,7 +210,7 @@ models with an instance of the subclass. :func:`moderator.unregister` methods detailed above, the following methods on :class:`Moderator` can be overridden to achieve customized behavior: - .. method:: connect + .. method:: connect() Determines how moderation is set up globally. The base implementation in diff --git a/docs/ref/contrib/formtools/form-preview.txt b/docs/ref/contrib/formtools/form-preview.txt index 011e72c2e0..3c891e2f9a 100644 --- a/docs/ref/contrib/formtools/form-preview.txt +++ b/docs/ref/contrib/formtools/form-preview.txt @@ -110,7 +110,7 @@ default templates. Advanced ``FormPreview`` methods ================================ -.. method:: FormPreview.process_preview +.. method:: FormPreview.process_preview() Given a validated form, performs any extra processing before displaying the preview page, and saves any extra data in context. diff --git a/docs/ref/contrib/formtools/form-wizard.txt b/docs/ref/contrib/formtools/form-wizard.txt index 18586eda68..b2bcad68f9 100644 --- a/docs/ref/contrib/formtools/form-wizard.txt +++ b/docs/ref/contrib/formtools/form-wizard.txt @@ -229,7 +229,7 @@ Here's a full example template: Hooking the wizard into a URLconf --------------------------------- -.. method:: WizardView.as_view +.. method:: WizardView.as_view() Finally, we need to specify which forms to use in the wizard, and then deploy the new :class:`WizardView` object at a URL in the ``urls.py``. The diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt index dd4498cca1..3f26606ae5 100644 --- a/docs/ref/contrib/gis/gdal.txt +++ b/docs/ref/contrib/gis/gdal.txt @@ -459,19 +459,19 @@ systems and coordinate transformation:: Constructs a :class:`Polygon` from the given bounding-box (a 4-tuple). - .. method:: __len__ + .. method:: __len__() Returns the number of points in a :class:`LineString`, the number of rings in a :class:`Polygon`, or the number of geometries in a :class:`GeometryCollection`. Not applicable to other geometry types. - .. method:: __iter__ + .. method:: __iter__() Iterates over the points in a :class:`LineString`, the rings in a :class:`Polygon`, or the geometries in a :class:`GeometryCollection`. Not applicable to other geometry types. - .. method:: __getitem__ + .. method:: __getitem__() Returns the point at the specified index for a :class:`LineString`, the interior ring at the specified index for a :class:`Polygon`, or the geometry @@ -677,7 +677,7 @@ systems and coordinate transformation:: Returns ``True`` if this geometry overlaps the other, otherwise returns ``False``. - .. method:: boundary + .. method:: boundary() The boundary of this geometry, as a new :class:`OGRGeometry` object. @@ -686,22 +686,22 @@ systems and coordinate transformation:: The smallest convex polygon that contains this geometry, as a new :class:`OGRGeometry` object. - .. method:: difference + .. method:: difference() Returns the region consisting of the difference of this geometry and the other, as a new :class:`OGRGeometry` object. - .. method:: intersection + .. method:: intersection() Returns the region consisting of the intersection of this geometry and the other, as a new :class:`OGRGeometry` object. - .. method:: sym_difference + .. method:: sym_difference() Returns the region consisting of the symmetric difference of this geometry and the other, as a new :class:`OGRGeometry` object. - .. method:: union + .. method:: union() Returns the region consisting of the union of this geometry and the other, as a new :class:`OGRGeometry` object. 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 ``

`` tags, with each ``

`` 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 ``

  • `` tags, with each ``
  • `` containing one field. It does *not* include the ``