mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 08:43:10 +00:00
moved set_page_edit_hanlder to edit_handlders.py. Still not happy it's invoked the right way though
This commit is contained in:
parent
b95d6a0fab
commit
fb9a876e92
2 changed files with 4 additions and 4 deletions
|
|
@ -261,6 +261,10 @@ def extract_panel_definitions_from_model_class(model, exclude=None):
|
|||
return panels
|
||||
|
||||
|
||||
def set_page_edit_handler(page_class, handlers):
|
||||
page_class.handlers = handlers
|
||||
|
||||
|
||||
class EditHandler(object):
|
||||
"""
|
||||
Abstract class providing sensible default behaviours for objects implementing
|
||||
|
|
|
|||
|
|
@ -555,10 +555,6 @@ def get_which_page_edit_handler(page_class):
|
|||
return get_default_panels(page_class)
|
||||
|
||||
|
||||
def set_page_edit_handler(page_class, handlers):
|
||||
page_class.handlers = handlers
|
||||
|
||||
|
||||
def get_page_edit_handler(page_class):
|
||||
if page_class not in PAGE_EDIT_HANDLERS:
|
||||
PAGE_EDIT_HANDLERS[page_class] = TabbedInterface(get_which_page_edit_handler(page_class))
|
||||
|
|
|
|||
Loading…
Reference in a new issue