Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[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
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/creation.py
View
2  django/db/backends/creation.py
@@ -300,7 +300,7 @@ def sql_remove_table_constraints(self, model, references_to_delete, style):
(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
Please sign in to comment.
Something went wrong with that request. Please try again.