1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

Made sentence about Model consistent in docs.

This commit is contained in:
Zainab Amir 2021-08-24 10:41:24 +05:00 committed by Mariusz Felisiak
parent fa1d7ba5b9
commit 3445c50a3a
2 changed files with 7 additions and 7 deletions

View File

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

View File

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