Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
  • Loading branch information...
commit 32134986812442347a72186c2b552fd1b29f2494 1 parent 6943950
Russell Keith-Magee authored March 20, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/creation.py
2  django/db/backends/creation.py
@@ -300,7 +300,7 @@ def sql_remove_table_constraints(self, model, references_to_delete, style):
300 300
                 (style.SQL_KEYWORD('ALTER TABLE'),
301 301
                 style.SQL_TABLE(qn(table)),
302 302
                 style.SQL_KEYWORD(self.connection.ops.drop_foreignkey_sql()),
303  
-                style.SQL_FIELD(truncate_name(r_name, self.connection.ops.max_name_length()))))
  303
+                style.SQL_FIELD(qn(truncate_name(r_name, self.connection.ops.max_name_length())))))
304 304
         del references_to_delete[model]
305 305
         return output
306 306
 

0 notes on commit 3213498

Please sign in to comment.
Something went wrong with that request. Please try again.