From 9fec605d8d0dff835c9e6bddfc4919a1c3470fa5 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 5 May 2006 02:38:32 +0000 Subject: [PATCH] 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 --- AUTHORS | 1 + django/core/management.py | 1 + 2 files changed, 2 insertions(+) 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 ChaosKCW + Ian Clelland Matt Croydon Jonathan Daugherty (cygnus) Jason Davies (Esaj) 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: