{"action":"opened","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/1561","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/1561/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/1561/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/1561/events","html_url":"https://github.com/torchbox/wagtail/issues/1561","id":98135262,"number":1561,"title":"Customising the tabbed interface Documentation","user":{"login":"jossingram","id":5364807,"avatar_url":"https://avatars.githubusercontent.com/u/5364807?v=3","gravatar_id":"","url":"https://api.github.com/users/jossingram","html_url":"https://github.com/jossingram","followers_url":"https://api.github.com/users/jossingram/followers","following_url":"https://api.github.com/users/jossingram/following{/other_user}","gists_url":"https://api.github.com/users/jossingram/gists{/gist_id}","starred_url":"https://api.github.com/users/jossingram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jossingram/subscriptions","organizations_url":"https://api.github.com/users/jossingram/orgs","repos_url":"https://api.github.com/users/jossingram/repos","events_url":"https://api.github.com/users/jossingram/events{/privacy}","received_events_url":"https://api.github.com/users/jossingram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T10:25:15Z","updated_at":"2015-07-30T10:25:15Z","closed_at":null,"body":"http://docs.wagtail.io/en/v1.0/advanced_topics/customisation/page_editing_interface.html#customising-the-tabbed-interface\r\n\r\nI couldn't get this bit to work until I added my model name like below, not sure if this is a mistake in the documentation or some difference in the way I've implemented things.\r\n\r\nfrom wagtail.wagtailadmin.edit_handlers import TabbedInterface, ObjectList\r\n\r\nclass BlogPage(Page):\r\n    # field definitions omitted\r\n\r\n    BlogPage.content_panels = [\r\n        FieldPanel('title', classname=\"full title\"),\r\n        FieldPanel('date'),\r\n        FieldPanel('body', classname=\"full\"),\r\n    ]\r\n     BlogPage.sidebar_content_panels = [\r\n        SnippetChooserPanel('advert', Advert),\r\n        InlinePanel('related_links', label=\"Related links\"),\r\n    ]\r\n\r\n    BlogPage.edit_handler = TabbedInterface([\r\n        ObjectList(BlogPage.content_panels, heading='Content'),\r\n        ObjectList(BlogPage.sidebar_content_panels, heading='Sidebar content'),\r\n        ObjectList(BlogPage.promote_panels, heading='Promote'),\r\n        ObjectList(BlogPage.settings_panels, heading='Settings', classname=\"settings\"),\r\n    ])"}}