summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2016-09-30 21:08:35 +0200
committerTim Graham <timograham@gmail.com>2016-10-28 18:42:29 -0400
commitefcb7e1ebf2b852a442d00a31634438359eb4039 (patch)
treecce88cc9cb2093fca4fe9a764bcce803d2be7d81 /docs/releases
parent20be1918e77414837178d6bf1657068c8306d50c (diff)
Modified readiness check in AppConfig.get_model(s).
It was inconsistent with the equivalent check in Apps.get_model(s) because I made incorrect assumptions when I wrote that code and needlessly complicated readiness checks. This is a backwards-incompatible change.
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/1.11.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index 27f7481fa6..8fd0795d67 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -579,6 +579,13 @@ Miscellaneous
* ``ConditionalGetMiddleware`` no longer sets the ``Date`` header as Web
servers set that header.
+* :meth:`~django.apps.AppConfig.get_model` and
+ :meth:`~django.apps.AppConfig.get_models` now raise
+ :exc:`~django.core.exceptions.AppRegistryNotReady` if they're called before
+ models of all applications have been loaded. Previously they only required
+ the target application's models to be loaded and thus could return models
+ without all their relations set up.
+
.. _deprecated-features-1.11:
Features deprecated in 1.11