mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +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`:
|
||||
|
||||
|
|
|
@ -249,3 +249,6 @@ these features.
|
|||
relative ones when the path is identical is also removed.
|
||||
|
||||
* ``Field.rel`` and ``Field.remote_field.to`` are removed.
|
||||
|
||||
* The ``on_delete`` argument for ``ForeignKey`` and ``OneToOneField`` are now
|
||||
required.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue