Fixed #8007: removed mention of admin options in models from docs/design_philosophies.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
James Bennett 2008-08-16 14:41:28 +00:00
parent df284da44f
commit 6bcb4935f2
1 changed files with 4 additions and 2 deletions

View File

@ -83,8 +83,10 @@ Include all relevant domain logic
Models should encapsulate every aspect of an "object," following Martin
Fowler's `Active Record`_ design pattern.
This is why model-specific admin options are included in the model itself; data
related to a model should be stored *in* the model.
This is why both the data represented by a model and information about
it (its human-readable name, options like default ordering, etc.) are
defined in the model class; all the information needed to understand a
given model should be stored *in* the model.
.. _`Active Record`: http://www.martinfowler.com/eaaCatalog/activeRecord.html