mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 17:23:15 +00:00
define StreamFieldPanel as an edit panel type (that doesn't do anything for now)
This commit is contained in:
parent
1fb1db98e3
commit
d1e36651af
1 changed files with 9 additions and 0 deletions
|
|
@ -616,3 +616,12 @@ Page.promote_panels = [
|
|||
Page.settings_panels = [
|
||||
PublishingPanel()
|
||||
]
|
||||
|
||||
|
||||
class BaseStreamFieldPanel(BaseFieldPanel):
|
||||
pass
|
||||
|
||||
def StreamFieldPanel(field_name):
|
||||
return type(str('_StreamFieldPanel'), (BaseStreamFieldPanel,), {
|
||||
'field_name': field_name,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue