mirror of
https://github.com/django/django.git
synced 2024-12-26 02:56:25 +00:00
[5.0.x] Removed obsolete sentence in custom model field docs.
Backport of 36ed45d27c
from main
This commit is contained in:
parent
effd704a1c
commit
a5ee682baf
@ -431,9 +431,7 @@ Django when the framework constructs the ``CREATE TABLE`` statements for your
|
|||||||
application -- that is, when you first create your tables. The methods are also
|
application -- that is, when you first create your tables. The methods are also
|
||||||
called when constructing a ``WHERE`` clause that includes the model field --
|
called when constructing a ``WHERE`` clause that includes the model field --
|
||||||
that is, when you retrieve data using QuerySet methods like ``get()``,
|
that is, when you retrieve data using QuerySet methods like ``get()``,
|
||||||
``filter()``, and ``exclude()`` and have the model field as an argument. They
|
``filter()``, and ``exclude()`` and have the model field as an argument.
|
||||||
are not called at any other time, so it can afford to execute slightly complex
|
|
||||||
code, such as the ``connection.settings_dict`` check in the above example.
|
|
||||||
|
|
||||||
Some database column types accept parameters, such as ``CHAR(25)``, where the
|
Some database column types accept parameters, such as ``CHAR(25)``, where the
|
||||||
parameter ``25`` represents the maximum column length. In cases like these,
|
parameter ``25`` represents the maximum column length. In cases like these,
|
||||||
|
Loading…
Reference in New Issue
Block a user