Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Variable renaming. I didn't feel comfortable with the tricky re-alias…

…ing in the line table_list=table_list().

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1788b0c96fe2afdd8b14ab1ca06f27ce4f31ba8d 1 parent d30badc
@malcolmt malcolmt authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 django/core/management/commands/
8 django/core/management/commands/
@@ -40,14 +40,14 @@ def handle_noargs(self, **options):
# Get a list of all existing database tables,
# so we know what needs to be added.
- table_list = table_list()
+ tables = table_list()
if connection.features.uses_case_insensitive_names:
table_name_converter = str.upper
table_name_converter = lambda x: x
# Get a list of already installed *models* so that references work right.
- seen_models = installed_models(table_list)
+ seen_models = installed_models(tables)
created_models = set()
pending_references = {}
@@ -59,7 +59,7 @@ def handle_noargs(self, **options):
# Create the model's database table, if it doesn't already exist.
if verbosity >= 2:
print "Processing %s.%s model" % (app_name, model._meta.object_name)
- if table_name_converter(model._meta.db_table) in table_list:
+ if table_name_converter(model._meta.db_table) in tables:
sql, references = sql_model_create(model,, seen_models)
@@ -71,7 +71,7 @@ def handle_noargs(self, **options):
print "Creating table %s" % model._meta.db_table
for statement in sql:
- table_list.append(table_name_converter(model._meta.db_table))
+ tables.append(table_name_converter(model._meta.db_table))
# Create the m2m tables. This must be done after all tables have been created
# to ensure that all referred tables will exist.
Please sign in to comment.
Something went wrong with that request. Please try again.