Fixed typo in django/db/backends/base/schema.py.
This commit is contained in:
parent
3c71fb3909
commit
c12745f682
|
@ -460,7 +460,7 @@ class BaseDatabaseSchemaEditor:
|
|||
# Reset connection if required
|
||||
if self.connection.features.connection_persists_old_columns:
|
||||
self.connection.close()
|
||||
# Remove all deferred statements referencing the deleted table.
|
||||
# Remove all deferred statements referencing the deleted column.
|
||||
for sql in list(self.deferred_sql):
|
||||
if isinstance(sql, Statement) and sql.references_column(model._meta.db_table, field.column):
|
||||
self.deferred_sql.remove(sql)
|
||||
|
|
Loading…
Reference in New Issue