Skip to content
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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6943950 commit 32134986812442347a72186c2b552fd1b29f2494 @freakboy3742 freakboy3742 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/
2 django/db/backends/
@@ -300,7 +300,7 @@ def sql_remove_table_constraints(self, model, references_to_delete, style):
- 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

0 comments on commit 3213498

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