Skip to content

Commit

Permalink
Removed an outdated comment on DefaultConnectionProxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech authored and timgraham committed Feb 20, 2019
1 parent 7feddd8 commit 21ff23b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions django/db/__init__.py
Expand Up @@ -18,11 +18,6 @@
router = ConnectionRouter()


# 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.
# We load all these up for backwards compatibility, you should use
# connections['default'] instead.
class DefaultConnectionProxy:
"""
Proxy for accessing the default DatabaseWrapper object's attributes. If you
Expand All @@ -42,6 +37,7 @@ def __eq__(self, other):
return connections[DEFAULT_DB_ALIAS] == other


# For backwards compatibility. Prefer connections['default'] instead.
connection = DefaultConnectionProxy()


Expand Down

0 comments on commit 21ff23b

Please sign in to comment.