{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/3142","repository_url":"https://api.github.com/repos/torchbox/wagtail","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/3142/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/3142/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/3142/events","html_url":"https://github.com/torchbox/wagtail/issues/3142","id":187722178,"number":3142,"title":"ListBlock's child block when rendered on the template has incomplete classname","user":{"login":"mevinbabuc","id":1276650,"avatar_url":"https://avatars.githubusercontent.com/u/1276650?v=3","gravatar_id":"","url":"https://api.github.com/users/mevinbabuc","html_url":"https://github.com/mevinbabuc","followers_url":"https://api.github.com/users/mevinbabuc/followers","following_url":"https://api.github.com/users/mevinbabuc/following{/other_user}","gists_url":"https://api.github.com/users/mevinbabuc/gists{/gist_id}","starred_url":"https://api.github.com/users/mevinbabuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevinbabuc/subscriptions","organizations_url":"https://api.github.com/users/mevinbabuc/orgs","repos_url":"https://api.github.com/users/mevinbabuc/repos","events_url":"https://api.github.com/users/mevinbabuc/events{/privacy}","received_events_url":"https://api.github.com/users/mevinbabuc/received_events","type":"User","site_admin":false},"labels":[{"id":141799433,"url":"https://api.github.com/repos/torchbox/wagtail/labels/type:Cleanup/Optimisation","name":"type:Cleanup/Optimisation","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/torchbox/wagtail/milestones/34","html_url":"https://github.com/torchbox/wagtail/milestones/1.8","labels_url":"https://api.github.com/repos/torchbox/wagtail/milestones/34/labels","id":2044026,"number":34,"title":"1.8","description":"","creator":{"login":"gasman","id":85097,"avatar_url":"https://avatars.githubusercontent.com/u/85097?v=3","gravatar_id":"","url":"https://api.github.com/users/gasman","html_url":"https://github.com/gasman","followers_url":"https://api.github.com/users/gasman/followers","following_url":"https://api.github.com/users/gasman/following{/other_user}","gists_url":"https://api.github.com/users/gasman/gists{/gist_id}","starred_url":"https://api.github.com/users/gasman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasman/subscriptions","organizations_url":"https://api.github.com/users/gasman/orgs","repos_url":"https://api.github.com/users/gasman/repos","events_url":"https://api.github.com/users/gasman/events{/privacy}","received_events_url":"https://api.github.com/users/gasman/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":27,"state":"open","created_at":"2016-10-03T12:54:43Z","updated_at":"2016-11-09T10:35:45Z","due_on":"2016-12-01T00:00:00Z","closed_at":null},"comments":3,"created_at":"2016-11-07T14:16:01Z","updated_at":"2016-11-09T11:47:05Z","closed_at":null,"body":"If I have a block with an attribute as ListBlock, when its rendered out in the admin, the class name is incomplete `sequence-member blockname-`; i.e it ends with a hyphen. The class name does not contain the block name.\r\n\r\n```\r\nclass LinkGroup(blocks.StructBlock):\r\n    links = blocks.ListBlock(LinkBlock())\r\n\r\n    class Meta:\r\n        label = \"Link Group\"\r\n        icon = \"link\"\r\n```\r\n\r\n<img width=\"603\" alt=\"screen shot 2016-11-07 at 7 33 07 pm\" src=\"https://cloud.githubusercontent.com/assets/1276650/20060462/49407700-a521-11e6-9ae6-f8a39de9c37e.png\">\r\n\r\nOn further inspecting the code, found out that the code `<li id=\"{{ prefix }}-container\" class=\"sequence-member blockname-{{ block_type_name }}\">` in the `sequence_member.html` refers to `block_type_name` which is not send from the backend (list_block.py) line `48`\r\n\r\n```\r\n        return render_to_string('wagtailadmin/block_forms/list_member.html', {\r\n            'prefix': prefix,\r\n            'child': child,\r\n            'index': index,\r\n        })\r\n```\r\n\r\n### Technical details\r\n\r\n* Python version: 3.4.5\r\n* Django version: 1.8.15\r\n* Wagtail version: 1.6.2"},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/259396515","html_url":"https://github.com/torchbox/wagtail/issues/3142#issuecomment-259396515","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/3142","id":259396515,"user":{"login":"mevinbabuc","id":1276650,"avatar_url":"https://avatars.githubusercontent.com/u/1276650?v=3","gravatar_id":"","url":"https://api.github.com/users/mevinbabuc","html_url":"https://github.com/mevinbabuc","followers_url":"https://api.github.com/users/mevinbabuc/followers","following_url":"https://api.github.com/users/mevinbabuc/following{/other_user}","gists_url":"https://api.github.com/users/mevinbabuc/gists{/gist_id}","starred_url":"https://api.github.com/users/mevinbabuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevinbabuc/subscriptions","organizations_url":"https://api.github.com/users/mevinbabuc/orgs","repos_url":"https://api.github.com/users/mevinbabuc/repos","events_url":"https://api.github.com/users/mevinbabuc/events{/privacy}","received_events_url":"https://api.github.com/users/mevinbabuc/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T11:47:05Z","updated_at":"2016-11-09T11:47:05Z","body":"yes I agree; I think we should remove it."}}
{"actor":{"display_login":"mevinbabuc"}}