mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #26593 -- Leveraged deferrable_sql() in SchemaEditor
This commit is contained in:
parent
c6499d532d
commit
deeffde84a
3 changed files with 3 additions and 5 deletions
|
@ -1628,6 +1628,7 @@ class SchemaTests(TransactionTestCase):
|
|||
"column": editor.quote_name(column),
|
||||
"to_table": editor.quote_name(table),
|
||||
"to_column": editor.quote_name(model._meta.auto_field.column),
|
||||
"deferrable": connection.ops.deferrable_sql(),
|
||||
}
|
||||
)
|
||||
editor.alter_field(model, get_field(Author, CASCADE, field_class=ForeignKey), field)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue