kopia lustrzana https://github.com/wagtail/wagtail
PageWithExcludedCopyField -allow blank value on excluded field
rodzic
e22545c87b
commit
2b2445ad36
|
@ -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 = [
|
||||
|
|
Ładowanie…
Reference in New Issue