From 32134986812442347a72186c2b552fd1b29f2494 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 20 Mar 2010 12:30:40 +0000 Subject: [PATCH] [1.1.X] Fixed #12850 -- Ensured that constraint names are quoted when they are removed. Thanks to Tim Kersten for the report and patch. Backport of r12811 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12812 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 43f47048e0..e126c0b57c 100644 --- a/django/db/backends/creation.py +++ b/django/db/backends/creation.py @@ -300,7 +300,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