mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
be552664ba
commit
9fec605d8d
1
AUTHORS
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/>
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue