PageWithExcludedCopyField -allow blank value on excluded field

pull/4012/head
LB 2017-11-02 08:10:24 +07:00 zatwierdzone przez Matt Westcott
rodzic e22545c87b
commit 2b2445ad36
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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 = [