From 01906de5c2877186187cce102429803764892a40 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 11 Aug 2007 11:11:16 +0000 Subject: [PATCH] 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 --- django/core/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management.py b/django/core/management.py index 0bcc612c4b8..35078c9bffc 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)])