mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
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:
parent
c485e236bd
commit
96d5d434fa
2 changed files with 46 additions and 0 deletions
|
@ -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``
|
||||
-------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue