diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-03-20 12:29:17 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-03-20 12:29:17 +0000 |
| commit | 4f98a7c45f4ac65204f0c5e05bad5530d3dc4cc6 (patch) | |
| tree | 1d51ebe0a15ec1a6efdc92bbe34702fd3da121c3 | |
| parent | 9f6a82fafbd84865a06e162c14b6a5d5e110babe (diff) | |
Fixed #12850 -- Ensured that constraint names are quoted when they are removed. Thanks to Tim Kersten for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/backends/creation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py index a9d730aef5..6bda89de10 100644 --- a/django/db/backends/creation.py +++ b/django/db/backends/creation.py @@ -318,7 +318,7 @@ class BaseDatabaseCreation(object): (style.SQL_KEYWORD('ALTER TABLE'), style.SQL_TABLE(qn(table)), style.SQL_KEYWORD(self.connection.ops.drop_foreignkey_sql()), - style.SQL_FIELD(truncate_name(r_name, self.connection.ops.max_name_length())))) + style.SQL_FIELD(qn(truncate_name(r_name, self.connection.ops.max_name_length()))))) del references_to_delete[model] return output |
