Skip to content

Commit

Permalink
Fixed #1766 -- Fixed bug in syncdb where it allowed two models to hav…
Browse files Browse the repository at this point in the history
…e the same database table. Thanks, Ian Clelland

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed May 5, 2006
1 parent be55266 commit 9fec605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -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/>
Expand Down
1 change: 1 addition & 0 deletions django/core/management.py
Expand Up @@ -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:
Expand Down

0 comments on commit 9fec605

Please sign in to comment.