mirror of
https://github.com/django/django.git
synced 2025-06-15 00:19:12 +00:00
[3.2.x] Made sentence about Model consistent in docs.
Backport of 3445c50a3affc5ae7b1c2712a139d4a5105aeaf5 from main
This commit is contained in:
parent
69009f4952
commit
11b2cbb65f
@ -122,10 +122,10 @@ additional metadata.
|
|||||||
|
|
||||||
.. admonition:: Philosophy
|
.. admonition:: Philosophy
|
||||||
|
|
||||||
A model is the single, definitive source of truth about your data. It contains
|
A model is the single, definitive source of information about your data. It
|
||||||
the essential fields and behaviors of the data you're storing. Django follows
|
contains the essential fields and behaviors of the data you're storing.
|
||||||
the :ref:`DRY Principle <dry>`. The goal is to define your data model in one
|
Django follows the :ref:`DRY Principle <dry>`. The goal is to define your
|
||||||
place and automatically derive things from it.
|
data model in one place and automatically derive things from it.
|
||||||
|
|
||||||
This includes the migrations - unlike in Ruby On Rails, for example, migrations
|
This includes the migrations - unlike in Ruby On Rails, for example, migrations
|
||||||
are entirely derived from your models file, and are essentially a
|
are entirely derived from your models file, and are essentially a
|
||||||
|
@ -4,9 +4,9 @@ Models and databases
|
|||||||
|
|
||||||
.. module:: django.db
|
.. module:: django.db
|
||||||
|
|
||||||
A model is the single, definitive source of data about your data. It contains
|
A model is the single, definitive source of information about your data. It
|
||||||
the essential fields and behaviors of the data you're storing. Generally, each
|
contains the essential fields and behaviors of the data you're storing.
|
||||||
model maps to a single database table.
|
Generally, each model maps to a single database table.
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user