add exclude_fields_in_copy to core page model

pull/4012/head
LB 2017-11-01 19:38:13 +07:00 zatwierdzone przez Matt Westcott
rodzic d31f600714
commit 36d06ae105
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -348,6 +348,9 @@ class Page(six.with_metaclass(PageBase, AbstractPage, index.Indexed, Clusterable
# Do not allow plain Page instances to be created through the Wagtail admin
is_creatable = False
# An array of additional field names that will not be included when a Page is copied.
exclude_fields_in_copy = []
# Define these attributes early to avoid masking errors. (Issue #3078)
# The canonical definition is in wagtailadmin.edit_handlers.
content_panels = []