diff options
| author | Adam Chainz <me@adamj.eu> | 2016-09-27 00:04:18 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-09-26 19:04:52 -0400 |
| commit | 6855dac0f900d7b825c5e8ffaa5c619e3222447a (patch) | |
| tree | c3b552a3392981aa91066557f1f9b38b925e17d4 | |
| parent | a1c2b2095fc126a37c461f6533c068f50e78939a (diff) | |
[1.10.x] Removed missing name in django.db __all__.
'backend' hasn't existed since 051c666acac770dea1af2fc223cc695f985f02f7.
Backport of b29c6c96c738bd7250a408b079dd8a4d4657849a from master
| -rw-r--r-- | django/db/__init__.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/django/db/__init__.py b/django/db/__init__.py index 7b45dafdd0..f1e21930f9 100644 --- a/django/db/__init__.py +++ b/django/db/__init__.py @@ -7,10 +7,10 @@ from django.db.utils import ( ) __all__ = [ - 'backend', 'connection', 'connections', 'router', 'DatabaseError', - 'IntegrityError', 'InternalError', 'ProgrammingError', 'DataError', - 'NotSupportedError', 'Error', 'InterfaceError', 'OperationalError', - 'DEFAULT_DB_ALIAS', 'DJANGO_VERSION_PICKLE_KEY' + 'connection', 'connections', 'router', 'DatabaseError', 'IntegrityError', + 'InternalError', 'ProgrammingError', 'DataError', 'NotSupportedError', + 'Error', 'InterfaceError', 'OperationalError', 'DEFAULT_DB_ALIAS', + 'DJANGO_VERSION_PICKLE_KEY', ] connections = ConnectionHandler() @@ -18,9 +18,6 @@ connections = ConnectionHandler() router = ConnectionRouter() -# `connection`, `DatabaseError` and `IntegrityError` are convenient aliases -# for backend bits. - # DatabaseWrapper.__init__() takes a dictionary, not a settings module, so we # manually create the dictionary from the settings, passing only the settings # that the database backends care about. |
