Browse files

Fixed a bug I introduced in my previosu ommit.

  • Loading branch information...
1 parent df3d7e6 commit 0b69a755029f8a8ba6005b9d77be8132a7bc0fb3 @alex alex committed Jul 8, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 django/db/__init__.py
View
7 django/db/__init__.py
@@ -39,8 +39,15 @@ def __setattr__(self, name, value):
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

0 comments on commit 0b69a75

Please sign in to comment.