summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-03-02 14:01:52 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-03-02 14:01:52 +0100
commit7ba29189fabccdfde34071846bc08252588554d7 (patch)
treec7ff261072b3d937ef99fe223500e4d90d09d157
parentf732d55dfcd06faf16a5d45798ae2f53d7784d66 (diff)
Restored aliases for two APIs removed by app-loading.
-rw-r--r--django/db/models/loading.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/db/models/loading.py b/django/db/models/loading.py
index 2d24ca646d..31a3690f95 100644
--- a/django/db/models/loading.py
+++ b/django/db/models/loading.py
@@ -10,6 +10,10 @@ warnings.warn(
__all__ = ('get_apps', 'get_app', 'get_models', 'get_model', 'register_models',
'load_app', 'app_cache_ready')
+# Backwards-compatibility for private APIs during the deprecation period.
+UnavailableApp = LookupError
+cache = apps
+
# These methods were always module level, so are kept that way for backwards
# compatibility.
get_apps = apps.get_apps