1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Fixed tests broken in 2ee21d9.

This commit is contained in:
Aymeric Augustin
2013-02-28 17:05:25 +01:00
parent 2ee21d9f0d
commit cf30469164
3 changed files with 35 additions and 14 deletions

View File

@@ -39,6 +39,9 @@ class DefaultConnectionProxy(object):
def __setattr__(self, name, value):
return setattr(connections[DEFAULT_DB_ALIAS], name, value)
def __delattr__(self, name):
return delattr(connections[DEFAULT_DB_ALIAS], name)
connection = DefaultConnectionProxy()
backend = load_backend(connection.settings_dict['ENGINE'])