Browse Source

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

Andrea Rabbaglietti 6 năm trước cách đây
mục cha
commit
1b49b792e9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      docs/ref/models/fields.txt

+ 3 - 0
docs/ref/models/fields.txt

@@ -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`: