mirror of
https://github.com/django/django.git
synced 2025-02-04 14:37:19 +00:00
[5.1.x] Corrected note on importing fields in model field reference docs.
Backport of d7f78eb5d6c9250789fb3975b01e2a71d0e39577 from main.
This commit is contained in:
parent
0a1091f118
commit
c5ddc8550c
@ -22,9 +22,9 @@ This document contains all the API references of :class:`Field` including the
|
||||
|
||||
.. note::
|
||||
|
||||
Technically, these models are defined in :mod:`django.db.models.fields`, but
|
||||
for convenience they're imported into :mod:`django.db.models`; the standard
|
||||
convention is to use ``from django.db import models`` and refer to fields as
|
||||
Fields are defined in :mod:`django.db.models.fields`, but for convenience
|
||||
they're imported into :mod:`django.db.models`. The standard convention is
|
||||
to use ``from django.db import models`` and refer to fields as
|
||||
``models.<Foo>Field``.
|
||||
|
||||
.. _common-model-field-options:
|
||||
|
Loading…
x
Reference in New Issue
Block a user