Skip to content
Browse files

Restored aliases for two APIs removed by app-loading.

  • Loading branch information...
1 parent f732d55 commit 7ba29189fabccdfde34071846bc08252588554d7 @aaugustin aaugustin committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/db/models/
4 django/db/models/
@@ -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

0 comments on commit 7ba2918

Please sign in to comment.
Something went wrong with that request. Please try again.