Make Slug a readonly field to omitt the error in the admin form
This commit is contained in:
parent
a883f94591
commit
ef1ef0c124
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue