mirror of https://github.com/django/django.git
Fixed two more instances of bug #4827 in the management code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bf3c1cf7bf
commit
4f87e34315
|
@ -39,7 +39,7 @@ class Command(NoArgsCommand):
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
if connection.features.uses_case_insensitive_names:
|
if connection.features.uses_case_insensitive_names:
|
||||||
table_name_converter = str.upper
|
table_name_converter = lambda x: x.upper()
|
||||||
else:
|
else:
|
||||||
table_name_converter = lambda x: x
|
table_name_converter = lambda x: x
|
||||||
# Get a list of all existing database tables, so we know what needs to
|
# Get a list of all existing database tables, so we know what needs to
|
||||||
|
|
|
@ -130,7 +130,7 @@ def sql_delete(app, style):
|
||||||
else:
|
else:
|
||||||
table_names = []
|
table_names = []
|
||||||
if connection.features.uses_case_insensitive_names:
|
if connection.features.uses_case_insensitive_names:
|
||||||
table_name_converter = str.upper
|
table_name_converter = lambda x: x.upper()
|
||||||
else:
|
else:
|
||||||
table_name_converter = lambda x: x
|
table_name_converter = lambda x: x
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue