From 93a4d46184bba069fc6a9aa5517802b2488032ac Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Thu, 20 Jan 2011 00:33:32 +0000 Subject: Fixed #14672 - Added admin handling for on_delete=PROTECT. Thanks to jtiai for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15249 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/models/fields.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/ref/models') 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``. -- cgit v1.3