From 9f13c3328199d2fa70235cdc63bb06b1efc5b117 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 28 Dec 2013 18:27:33 +0100 Subject: Removed the only_installed argument of Apps.get_models. Refs #15903, #15866, #15850. --- docs/releases/1.7.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs') 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 -- cgit v1.3