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

This commit is contained in:
Mariusz Felisiak 2022-09-04 14:32:24 +02:00 committed by GitHub
parent cd1afd553f
commit 753602d0c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 12 deletions

View File

@ -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:
========================= =========================