summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/db/backends/oracle/introspection.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py
index 7bc385600c..543e84a8f3 100644
--- a/django/db/backends/oracle/introspection.py
+++ b/django/db/backends/oracle/introspection.py
@@ -21,6 +21,11 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
except AttributeError:
pass
+ try:
+ data_types_reverse[cx_Oracle.UNICODE] = 'CharField'
+ except AttributeError:
+ pass
+
def get_table_list(self, cursor):
"Returns a list of table names in the current database."
cursor.execute("SELECT TABLE_NAME FROM USER_TABLES")