1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Corrected note on importing fields in model field reference docs.

This commit is contained in:
aruseni 2024-10-27 21:46:13 +02:00 committed by Sarah Boyce
parent 163e72ebba
commit d7f78eb5d6

View File

@ -22,9 +22,9 @@ This document contains all the API references of :class:`Field` including the
.. note:: .. note::
Technically, these models are defined in :mod:`django.db.models.fields`, but Fields are defined in :mod:`django.db.models.fields`, but for convenience
for convenience they're imported into :mod:`django.db.models`; the standard they're imported into :mod:`django.db.models`. The standard convention is
convention is to use ``from django.db import models`` and refer to fields as to use ``from django.db import models`` and refer to fields as
``models.<Foo>Field``. ``models.<Foo>Field``.
.. _common-model-field-options: .. _common-model-field-options: