Kaydet (Commit) 0b69a755 authored tarafından Alex Gaynor's avatar Alex Gaynor

Fixed a bug I introduced in my previosu ommit.

üst df3d7e66
......@@ -39,8 +39,15 @@ class DefaultConnectionProxy(object):
def __delattr__(self, name):
return delattr(connections[DEFAULT_DB_ALIAS], name)
def __eq__(self, other):
return connections[DEFAULT_DB_ALIAS] == other
def __ne__(self, other):
return connections[DEFAULT_DB_ALIAS] != other
connection = DefaultConnectionProxy()
class DefaultBackendProxy(object):
"""
Temporary proxy class used during deprecation period of the `backend` module
......
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