diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-10 23:06:19 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-10 23:43:10 +0100 |
| commit | 3326a412ccde9f72e22a070a0b4d922048ed2286 (patch) | |
| tree | 7583ee99e53ab3d3bf846f1aec79dc34d330d2cf /docs/internals | |
| parent | 81bb8d12209a419142b1bf6961fbf9fc44419dcd (diff) | |
Deprecated importing a model before loading its application.
Refs #21719, #21680.
Diffstat (limited to 'docs/internals')
| -rw-r--r-- | docs/internals/deprecation.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 1b8b45a520..514561e1ff 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -170,6 +170,12 @@ these changes. * ``allow_syncdb`` on database routers will no longer automatically become ``allow_migrate``. +* All models will need to be defined inside an installed application or + declare an explicit :attr:`~django.db.models.Options.app_label`. + Furthermore, it won't be possible to import them before their application + is loaded. In particular, it won't be possible to import models inside + the root package of their application. + * If models are organized in a package, Django will no longer look for :ref:`initial SQL data<initial-sql>` in ``myapp/models/sql/``. Move your custom SQL files to ``myapp/sql/``. |
