From 62543260dd58309902fa73f0984e245fd6c6da2a Mon Sep 17 00:00:00 2001 From: Zapelini Date: Tue, 27 Sep 2016 16:01:30 -0300 Subject: [PATCH] Fixed #27282 -- Allowed using an integer DATABASES['PORT'] for Oracle. --- django/db/backends/oracle/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 55b75c3ef4..b5182469b7 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -191,7 +191,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): settings_dict = self.settings_dict if not settings_dict['HOST'].strip(): settings_dict['HOST'] = 'localhost' - if settings_dict['PORT'].strip(): + if settings_dict['PORT']: dsn = Database.makedsn(settings_dict['HOST'], int(settings_dict['PORT']), settings_dict['NAME'])