summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-26 11:35:02 -0500
committerTim Graham <timograham@gmail.com>2015-01-17 08:40:59 -0500
commit4e65f195e1b10d83bb7edc38c908747c4fd537b8 (patch)
treeffc1b1a613ddb80f5ce73e3a98e058bd1dd40b1e
parentd4ee6cda5802adc5a38d266ccebe78fb67066179 (diff)
Removed django.db.models.loading per deprecation timeline.
-rw-r--r--django/db/models/loading.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/django/db/models/loading.py b/django/db/models/loading.py
deleted file mode 100644
index 82cb2dc4da..0000000000
--- a/django/db/models/loading.py
+++ /dev/null
@@ -1,40 +0,0 @@
-import warnings
-
-from django.apps import apps
-from django.utils.deprecation import RemovedInDjango19Warning
-
-
-warnings.warn(
- "The utilities in django.db.models.loading are deprecated "
- "in favor of the new application loading system.",
- RemovedInDjango19Warning, stacklevel=2)
-
-__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
-get_app_package = apps.get_app_package
-get_app_path = apps.get_app_path
-get_app_paths = apps.get_app_paths
-get_app = apps.get_app
-get_models = apps.get_models
-get_model = apps.get_model
-register_models = apps.register_models
-load_app = apps.load_app
-app_cache_ready = apps.app_cache_ready
-
-
-# This method doesn't return anything interesting in Django 1.6. Maintain it
-# just for backwards compatibility until this module is deprecated.
-def get_app_errors():
- try:
- return apps.app_errors
- except AttributeError:
- apps.app_errors = {}
- return apps.app_errors