summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/gis/forms-api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/contrib/gis/forms-api.txt')
-rw-r--r--docs/ref/contrib/gis/forms-api.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/ref/contrib/gis/forms-api.txt b/docs/ref/contrib/gis/forms-api.txt
index b9c0c1dbe4..c2593acba6 100644
--- a/docs/ref/contrib/gis/forms-api.txt
+++ b/docs/ref/contrib/gis/forms-api.txt
@@ -18,7 +18,7 @@ In addition to the regular :ref:`form field arguments <core-field-arguments>`,
GeoDjango form fields take the following optional arguments.
``srid``
-~~~~~~~~
+--------
.. attribute:: Field.srid
@@ -28,7 +28,7 @@ GeoDjango form fields take the following optional arguments.
input values into that SRID.
``geom_type``
-~~~~~~~~~~~~~
+-------------
.. attribute:: Field.geom_type
@@ -40,42 +40,42 @@ Form field classes
==================
``GeometryField``
-~~~~~~~~~~~~~~~~~
+-----------------
.. class:: GeometryField
``PointField``
-~~~~~~~~~~~~~~
+--------------
.. class:: PointField
``LineStringField``
-~~~~~~~~~~~~~~~~~~~
+-------------------
.. class:: LineStringField
``PolygonField``
-~~~~~~~~~~~~~~~~
+----------------
.. class:: PolygonField
``MultiPointField``
-~~~~~~~~~~~~~~~~~~~
+-------------------
.. class:: MultiPointField
``MultiLineStringField``
-~~~~~~~~~~~~~~~~~~~~~~~~
+------------------------
.. class:: MultiLineStringField
``MultiPolygonField``
-~~~~~~~~~~~~~~~~~~~~~
+---------------------
.. class:: MultiPolygonField
``GeometryCollectionField``
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
+---------------------------
.. class:: GeometryCollectionField
@@ -91,7 +91,7 @@ Note that none of the currently available widgets supports 3D geometries, hence
geometry fields will fallback using a simple ``Textarea`` widget for such data.
Widget attributes
-~~~~~~~~~~~~~~~~~
+-----------------
GeoDjango widgets are template-based, so their attributes are mostly different
from other Django widget attributes.
@@ -134,7 +134,7 @@ widget. For example::
forms.OSMWidget(attrs={'map_width': 800, 'map_height': 500}))
Widget classes
-~~~~~~~~~~~~~~
+--------------
``BaseGeometryWidget``