diff options
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/fields.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 4b286aa232..38a7a10f2a 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -971,7 +971,8 @@ define the details of how the relation works. * :attr:`~django.db.models.CASCADE`: Cascade deletes; the default. * :attr:`~django.db.models.PROTECT`: Prevent deletion of the referenced - object by raising :exc:`django.db.IntegrityError`. + object by raising :exc:`django.db.models.ProtectedError`, a subclass of + :exc:`django.db.IntegrityError`. * :attr:`~django.db.models.SET_NULL`: Set the :class:`ForeignKey` null; this is only possible if :attr:`null` is ``True``. |
