mirror of
https://github.com/django/django.git
synced 2025-04-06 22:46:41 +00:00
[2.2.x] Removed an outdated comment on DefaultConnectionProxy.
Backport of 21ff23bfeb4014bceaa3df27677fb68409c0634d from master
This commit is contained in:
parent
7f25344c2e
commit
a9bd914a22
@ -18,11 +18,6 @@ connections = ConnectionHandler()
|
||||
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
|
||||
@ -42,6 +37,7 @@ class DefaultConnectionProxy:
|
||||
return connections[DEFAULT_DB_ALIAS] == other
|
||||
|
||||
|
||||
# For backwards compatibility. Prefer connections['default'] instead.
|
||||
connection = DefaultConnectionProxy()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user