Permalink
Browse files

Fixed #1766 -- Fixed bug in syncdb where it allowed two models to hav…

…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...
1 parent be55266 commit 9fec605d8d0dff835c9e6bddfc4919a1c3470fa5 @adrianholovaty adrianholovaty committed May 5, 2006
Showing with 2 additions and 0 deletions.
  1. +1 −0 AUTHORS
  2. +1 −0 django/core/management.py
View
1 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/>
View
1 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:

0 comments on commit 9fec605

Please sign in to comment.