Commit 0b69a755 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Fixed a bug I introduced in my previosu ommit.

parent df3d7e66
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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