Make Slug a readonly field to omitt the error in the admin form

This commit is contained in:
Lorenz Padberg 2024-04-10 17:46:24 +02:00
parent a883f94591
commit ef1ef0c124
1 changed files with 1 additions and 1 deletions

View File

@ -41,4 +41,4 @@ def wagtail_parent_filter(parent_cls, child_cls):
def get_default_settings(): def get_default_settings():
return ObjectList([FieldPanel("slug"), CommentPanel()], heading="Settings") return ObjectList([FieldPanel("slug", read_only=True), CommentPanel()], heading="Settings")