From 4f98a7c45f4ac65204f0c5e05bad5530d3dc4cc6 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 20 Mar 2010 12:29:17 +0000 Subject: [PATCH] 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 --- django/db/backends/creation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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