summaryrefslogtreecommitdiff
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
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
-rw-r--r--AUTHORS1
-rw-r--r--django/core/management.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 1f97ee3cd3..e7b53d5bf0 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -47,6 +47,7 @@ answer newbie questions, and generally made Django that much better:
C8E
Amit Chakradeo <http://amit.chakradeo.net/>
ChaosKCW
+ Ian Clelland <clelland@gmail.com>
Matt Croydon <http://www.postneo.com/>
Jonathan Daugherty (cygnus) <http://www.cprogrammer.org/>
Jason Davies (Esaj) <http://www.jasondavies.com/>
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: