summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-28 18:27:33 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-28 20:54:26 +0100
commit9f13c3328199d2fa70235cdc63bb06b1efc5b117 (patch)
tree05e4538d769d39bded19984c875449ca29c1dbe6 /docs
parentba7206cd81458865bace85914905392291b05829 (diff)
Removed the only_installed argument of Apps.get_models.
Refs #15903, #15866, #15850.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.7.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index 2c1b2bf26f..0d83c3aa81 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -593,6 +593,10 @@ methods are only referring to fields or other items in ``model._meta``.
App-loading changes
~~~~~~~~~~~~~~~~~~~
+You should make sure that your project doesn't import models from applications
+that aren't in :setting:`INSTALLED_APPS`. Relations involving such models may
+not be created properly.
+
Subclasses of :class:`~django.core.management.AppCommand` must now implement a
:meth:`~django.core.management.AppCommand.handle_app_config` method instead of
``handle_app()``. This method receives an :class:`~django.apps.AppConfig` instance.
@@ -609,8 +613,8 @@ period. In addition, the following changes take effect immediately:
* ``get_model`` raises :exc:`~exceptions.LookupError` instead of returning
``None`` when no model is found.
-* The ``only_installed`` and ``seed_cache`` arguments of ``get_model`` no
- longer exist.
+* The ``only_installed`` argument of ``get_model`` and ``get_models`` no
+ longer exists, nor does the ``seed_cache`` argument of ``get_model``.
While the new implementation is believed to be more robust, regressions cannot
be ruled out, especially during the import sequence. Circular imports that