Fixed a bug I introduced in my previosu ommit.

This commit is contained in:
Alex Gaynor 2013-07-08 10:32:04 +10:00
parent df3d7e66da
commit 0b69a75502
1 changed files with 7 additions and 0 deletions

View File

@ -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