summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-08-11 11:11:16 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-08-11 11:11:16 +0000
commit01906de5c2877186187cce102429803764892a40 (patch)
treeaaa2ac4684b0c6625749b403824be7a7eb9e9fec
parent1d4a0054e3f425259448bd23e62d2b8ca7d4b66b (diff)
Fixed #4827 -- Fixed a problem when converting Unicode table names to upper-case in Oracle backend. Based on a patch from timchen119@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management.py b/django/core/management.py
index 0bcc612c4b..35078c9bff 100644
--- a/django/core/management.py
+++ b/django/core/management.py
@@ -65,7 +65,7 @@ def _get_installed_models(table_list):
for model in models.get_models(app):
all_models.append(model)
if backend.uses_case_insensitive_names:
- converter = str.upper
+ converter = lambda x: x.upper()
else:
converter = lambda x: x
return set([m for m in all_models if converter(m._meta.db_table) in map(converter, table_list)])