Skip to content
Browse files

Fixed #12850 -- Ensured that constraint names are quoted when they ar…

…e removed. Thanks to Tim Kersten for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 9f6a82f commit 4f98a7c45f4ac65204f0c5e05bad5530d3dc4cc6 @freakboy3742 freakboy3742 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/
2 django/db/backends/
@@ -318,7 +318,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 4f98a7c

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