Fixed error introduced in r14512.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ramiro Morales 2010-11-11 05:17:31 +00:00
parent 4fb1825e75
commit cae746e037
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
def _connect_string(self):
settings_dict = self.settings_dict
if settings_dict['HOST'].strip():
if not settings_dict['HOST'].strip():
settings_dict['HOST'] = 'localhost'
if settings_dict['PORT'].strip():
dsn = Database.makedsn(settings_dict['HOST'],