[1.2.X] Fixed error introduced in r14512.
Backport of [14514] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2778f14660
commit
79ab8cad03
@ -346,7 +346,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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user