Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 9fec605d8d0dff835c9e6bddfc4919a1c3470fa5 1 parent be55266
Adrian Holovaty adrianholovaty authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  AUTHORS
  2. +1 −0  django/core/management.py
1  AUTHORS
View
@@ -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/>
1  django/core/management.py
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.