summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-05-05 02:38:32 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-05-05 02:38:32 +0000
commit9fec605d8d0dff835c9e6bddfc4919a1c3470fa5 (patch)
treeeb13772e282c504416804e3db4d456af5d2e8e1f /django
parentbe552664ba1b2275d4ca84ab530d595830d22d4c (diff)
Fixed #1766 -- Fixed bug in syncdb where it allowed two models to have the same database table. Thanks, Ian Clelland
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/core/management.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/core/management.py b/django/core/management.py
index 3838c2abee..ea995bbd7a 100644
--- a/django/core/management.py
+++ b/django/core/management.py
@@ -454,6 +454,7 @@ def syncdb():
print "Creating table %s" % model._meta.db_table
for statement in sql:
cursor.execute(statement)
+ table_list.append(model._meta.db_table)
for model in model_list:
if model in created_models: