1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Emphasized that ForeignKey.on_delete doesn't create a SQL constraint.

This commit is contained in:
Andrea Rabbaglietti
2018-10-10 20:56:50 +02:00
committed by Tim Graham
parent c82893cb8c
commit 1b49b792e9

View File

@@ -1271,6 +1271,9 @@ relation works.
null=True,
)
``on_delete`` doesn't create a SQL constraint in the database. Support for
database-level cascade options :ticket:`may be implemented later <21961>`.
The possible values for :attr:`~ForeignKey.on_delete` are found in
:mod:`django.db.models`: