Kaydet (Commit) 21ff23bf authored tarafından Ran Benita's avatar Ran Benita Kaydeden (comit) Tim Graham

Removed an outdated comment on DefaultConnectionProxy.

üst 7feddd87
...@@ -18,11 +18,6 @@ connections = ConnectionHandler() ...@@ -18,11 +18,6 @@ connections = ConnectionHandler()
router = ConnectionRouter() 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: class DefaultConnectionProxy:
""" """
Proxy for accessing the default DatabaseWrapper object's attributes. If you Proxy for accessing the default DatabaseWrapper object's attributes. If you
...@@ -42,6 +37,7 @@ class DefaultConnectionProxy: ...@@ -42,6 +37,7 @@ class DefaultConnectionProxy:
return connections[DEFAULT_DB_ALIAS] == other return connections[DEFAULT_DB_ALIAS] == other
# For backwards compatibility. Prefer connections['default'] instead.
connection = DefaultConnectionProxy() connection = DefaultConnectionProxy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment