From 2b2445ad363eb31b0e81117d97a81e4e09f3c22d Mon Sep 17 00:00:00 2001 From: LB Date: Thu, 2 Nov 2017 08:10:24 +0700 Subject: [PATCH] PageWithExcludedCopyField -allow blank value on excluded field --- wagtail/tests/testapp/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wagtail/tests/testapp/models.py b/wagtail/tests/testapp/models.py index 1af432fe6b..1bb53fa13f 100644 --- a/wagtail/tests/testapp/models.py +++ b/wagtail/tests/testapp/models.py @@ -144,7 +144,8 @@ class PageWithExcludedCopyField(Page): content = models.TextField() # Exclude this field from being copied - special_field = models.CharField(max_length=255, default='Very Special') + special_field = models.CharField( + blank=True, max_length=255, default='Very Special') exclude_fields_in_copy = ['special_field'] content_panels = [