From 763e087de19d37d93172442bc6f29fe1e0e7a430 Mon Sep 17 00:00:00 2001 From: Jason Pellerin Date: Fri, 30 Jun 2006 18:02:01 +0000 Subject: [PATCH] [multi-db] Cleaned up settings access in ConnectionInfo. git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3240 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/db/__init__.py b/django/db/__init__.py index ed0b8a4fb9..ac27248824 100644 --- a/django/db/__init__.py +++ b/django/db/__init__.py @@ -56,8 +56,8 @@ class ConnectionInfo(object): def __repr__(self): return "Connection: %r (ENGINE=%s NAME=%s)" \ % (self.connection, - self.connection.settings.DATABASE_ENGINE, - self.connection.settings.DATABASE_NAME) + self.settings.DATABASE_ENGINE, + self.settings.DATABASE_NAME) def close(self): """Close connection""" @@ -118,7 +118,7 @@ class LazyConnectionManager(object): except AttributeError: raise ImproperlyConfigured, \ "No DATABASES in settings." - + # In settings it's a dict, but connect() needs an object # pass global settings so that the default connection settings # can be defaults for the named connections