Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Restored aliases for two APIs removed by app-loading.

  • Loading branch information...
commit 7ba29189fabccdfde34071846bc08252588554d7 1 parent f732d55
Aymeric Augustin aaugustin authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/db/models/loading.py
4 django/db/models/loading.py
View
@@ -10,6 +10,10 @@
__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
Please sign in to comment.
Something went wrong with that request. Please try again.