[2.1.x] Emphasized that ForeignKey.on_delete doesn't create a SQL constraint.
Backport of 1b49b792e9f0e6a5ae22f49f75586847e7e183bf from master.
This commit is contained in:
parent
8985759f72
commit
b9b284831a
@ -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`:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user