Added some documentation explaining "managed=False" vs. "proxy=True".

These features look similar, but they're not identical. They can't be merged
into one (without requiring at least two Meta parameters anyway), so we've made
them have APIs that match their natural use-cases most easily.

Anyway, the documentation explains both the details and gives some simple to
follow rules.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2009-03-19 09:04:19 +00:00
parent c485e236bd
commit 96d5d434fa
2 changed files with 46 additions and 0 deletions

View file

@ -99,6 +99,10 @@ attribute.
For tests involving models with ``managed=False``, it's up to you to ensure
the correct tables are created as part of the test setup.
If you're interested in changing the Python-level behaviour of a model class,
you *could* use ``managed=True`` and create a copy of an existing model.
However, there's a better approach for that situation: :ref:`proxy-models`.
``order_with_respect_to``
-------------------------