Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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: http://code.djangoproject.com/svn/django/trunk@12811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4f98a7c45f4ac65204f0c5e05bad5530d3dc4cc6 1 parent 9f6a82f
@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
@@ -318,7 +318,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.