From 512b96aa820e71b7fcfed514a181f08ff5034e1f Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Mon, 25 Jan 2016 17:23:27 +0100 Subject: [PATCH] Guidance to acknowledge that models.PROTECT is also fine. --- wagtail/wagtailcore/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/wagtailcore/models.py b/wagtail/wagtailcore/models.py index d3859b68da..6c8b7cd35b 100644 --- a/wagtail/wagtailcore/models.py +++ b/wagtail/wagtailcore/models.py @@ -530,7 +530,7 @@ class Page(six.with_metaclass(PageBase, MP_Node, ClusterableModel, index.Indexed errors.append( checks.Warning( "Field hasn't specified on_delete action", - hint="Set on_delete=models.SET_NULL and make sure the field is nullable.", + hint="Set on_delete=models.SET_NULL and make sure the field is nullable or set on_delete=models.PROTECT. Wagtail does not allow simple database CASCADE because it will corrupt its tree storage.", obj=field, id='wagtailcore.W001', )