summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/api.txt6
-rw-r--r--docs/ref/forms/fields.txt10
-rw-r--r--docs/ref/forms/index.txt4
-rw-r--r--docs/ref/forms/validation.txt2
-rw-r--r--docs/ref/forms/widgets.txt2
5 files changed, 7 insertions, 17 deletions
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt
index 0d174ea4af..613d7544a9 100644
--- a/docs/ref/forms/api.txt
+++ b/docs/ref/forms/api.txt
@@ -1,5 +1,3 @@
-.. _ref-forms-api:
-
=============
The Forms API
=============
@@ -11,7 +9,7 @@ The Forms API
.. admonition:: About this document
This document covers the gritty details of Django's forms API. You should
- read the :ref:`introduction to working with forms <topics-forms-index>`
+ read the :doc:`introduction to working with forms </topics/forms/index>`
first.
.. _ref-forms-api-bound-unbound:
@@ -262,7 +260,7 @@ for each field in the "Built-in ``Field`` classes" section below.
You can write code to perform validation for particular form fields (based on
their name) or for the form as a whole (considering combinations of various
-fields). More information about this is in :ref:`ref-forms-validation`.
+fields). More information about this is in :doc:`/ref/forms/validation`.
Outputting forms as HTML
------------------------
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 396e51046e..0dd9095a77 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -1,5 +1,3 @@
-.. _ref-forms-fields:
-
===========
Form fields
===========
@@ -192,7 +190,7 @@ The callable will be evaluated only when the unbound form is displayed, not when
.. attribute:: Field.widget
The ``widget`` argument lets you specify a ``Widget`` class to use when
-rendering this ``Field``. See :ref:`ref-forms-widgets` for more information.
+rendering this ``Field``. See :doc:`/ref/forms/widgets` for more information.
``help_text``
~~~~~~~~~~~~~
@@ -267,7 +265,7 @@ error message keys it uses.
The ``validators`` argument lets you provide a list of validation functions
for this field.
-See the :ref:`validators documentation <ref-validators>` for more information.
+See the :doc:`validators documentation </ref/validators>` for more information.
``localize``
~~~~~~~~~~~~
@@ -516,8 +514,8 @@ given length.
* Validates that non-empty file data has been bound to the form.
* Error message keys: ``required``, ``invalid``, ``missing``, ``empty``
-To learn more about the ``UploadedFile`` object, see the :ref:`file uploads
-documentation <topics-http-file-uploads>`.
+To learn more about the ``UploadedFile`` object, see the :doc:`file uploads
+documentation </topics/http/file-uploads>`.
When you use a ``FileField`` in a form, you must also remember to
:ref:`bind the file data to the form <binding-uploaded-files>`.
diff --git a/docs/ref/forms/index.txt b/docs/ref/forms/index.txt
index e310863c7a..610416a363 100644
--- a/docs/ref/forms/index.txt
+++ b/docs/ref/forms/index.txt
@@ -1,10 +1,8 @@
-.. _ref-forms-index:
-
=====
Forms
=====
-Detailed form API reference. For introductory material, see :ref:`topics-forms-index`.
+Detailed form API reference. For introductory material, see :doc:`/topics/forms/index`.
.. toctree::
:maxdepth: 1
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt
index 911496c9ae..6cc3280e06 100644
--- a/docs/ref/forms/validation.txt
+++ b/docs/ref/forms/validation.txt
@@ -1,5 +1,3 @@
-.. _ref-forms-validation:
-
Form and field validation
=========================
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index e82fae7761..05215d4d8e 100644
--- a/docs/ref/forms/widgets.txt
+++ b/docs/ref/forms/widgets.txt
@@ -1,5 +1,3 @@
-.. _ref-forms-widgets:
-
=======
Widgets
=======