summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--django/core/management/commands/syncdb.py6
2 files changed, 4 insertions, 3 deletions
diff --git a/AUTHORS b/AUTHORS
index b23293ea50..1e30399735 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -306,6 +306,7 @@ answer newbie questions, and generally made Django that much better:
Milton Waddams
wam-djangobug@wamber.net
wangchun <yaohua2000@gmail.com>
+ Filip Wasilewski <filip.wasilewski@gmail.com>
Dan Watson <http://theidioteque.net/>
Chris Wesseling <Chris.Wesseling@cwi.nl>
James Wheare <django@sparemint.com>
diff --git a/django/core/management/commands/syncdb.py b/django/core/management/commands/syncdb.py
index 202ad004f0..8087c9a693 100644
--- a/django/core/management/commands/syncdb.py
+++ b/django/core/management/commands/syncdb.py
@@ -38,13 +38,13 @@ class Command(NoArgsCommand):
cursor = connection.cursor()
- # Get a list of all existing database tables,
- # so we know what needs to be added.
- tables = table_list()
if connection.features.uses_case_insensitive_names:
table_name_converter = str.upper
else:
table_name_converter = lambda x: x
+ # Get a list of all existing database tables, so we know what needs to
+ # be added.
+ tables = [table_name_converter(name) for name in table_list()]
# Get a list of already installed *models* so that references work right.
seen_models = installed_models(tables)