mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Refs #21127 -- Required on_delete for ForeignKey/OneToOneField.
Per deprecation timeline.
This commit is contained in:
parent
625e9da9ca
commit
ddd3268975
4 changed files with 5 additions and 143 deletions
|
@ -1277,11 +1277,6 @@ relation works.
|
|||
null=True,
|
||||
)
|
||||
|
||||
.. deprecated:: 1.9
|
||||
|
||||
:attr:`~ForeignKey.on_delete` will become a required argument in Django
|
||||
2.0. In older versions it defaults to ``CASCADE``.
|
||||
|
||||
The possible values for :attr:`~ForeignKey.on_delete` are found in
|
||||
:mod:`django.db.models`:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue