diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py index 43f47048e0..e126c0b57c 100644 --- a/django/db/backends/creation.py +++ b/django/db/backends/creation.py @@ -300,7 +300,7 @@ class BaseDatabaseCreation(object): (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