mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +00:00
Fixed a bug I introduced in my previosu ommit.
This commit is contained in:
parent
df3d7e66da
commit
0b69a75502
@ -39,8 +39,15 @@ class DefaultConnectionProxy(object):
|
|||||||
def __delattr__(self, name):
|
def __delattr__(self, name):
|
||||||
return delattr(connections[DEFAULT_DB_ALIAS], 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()
|
connection = DefaultConnectionProxy()
|
||||||
|
|
||||||
|
|
||||||
class DefaultBackendProxy(object):
|
class DefaultBackendProxy(object):
|
||||||
"""
|
"""
|
||||||
Temporary proxy class used during deprecation period of the `backend` module
|
Temporary proxy class used during deprecation period of the `backend` module
|
||||||
|
Loading…
Reference in New Issue
Block a user