浏览代码

Corrected heading level of "Registering and fetching lookups" section in docs.

Mariusz Felisiak 2 年之前
父节点
当前提交
753602d0c6
共有 1 个文件被更改,包括 12 次插入12 次删除
  1. 12 12
      docs/ref/models/fields.txt

+ 12 - 12
docs/ref/models/fields.txt

@@ -516,18 +516,6 @@ underscores to spaces. See :ref:`Verbose field names <verbose-field-names>`.
 A list of validators to run for this field. See the :doc:`validators
 A list of validators to run for this field. See the :doc:`validators
 documentation </ref/validators>` for more information.
 documentation </ref/validators>` for more information.
 
 
-Registering and fetching lookups
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-``Field`` implements the :ref:`lookup registration API <lookup-registration-api>`.
-The API can be used to customize which lookups are available for a field class
-and its instances, and how lookups are fetched from a field.
-
-.. versionchanged:: 4.2
-
-    Support for registering lookups on :class:`~django.db.models.Field`
-    instances was added.
-
 .. _model-field-types:
 .. _model-field-types:
 
 
 Field types
 Field types
@@ -2247,6 +2235,18 @@ Field API reference
         This method must be added to fields prior to 1.7 to migrate its data
         This method must be added to fields prior to 1.7 to migrate its data
         using :doc:`/topics/migrations`.
         using :doc:`/topics/migrations`.
 
 
+Registering and fetching lookups
+================================
+
+``Field`` implements the :ref:`lookup registration API <lookup-registration-api>`.
+The API can be used to customize which lookups are available for a field class
+and its instances, and how lookups are fetched from a field.
+
+.. versionchanged:: 4.2
+
+    Support for registering lookups on :class:`~django.db.models.Field`
+    instances was added.
+
 .. _model-field-attributes:
 .. _model-field-attributes:
 
 
 =========================
 =========================