{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/1806","repository_url":"https://api.github.com/repos/torchbox/wagtail","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/1806/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/1806/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/1806/events","html_url":"https://github.com/torchbox/wagtail/issues/1806","id":110590156,"number":1806,"title":"Generic ModelChooserBlock for StreamField","user":{"login":"SableWalnut","id":10582038,"avatar_url":"https://avatars.githubusercontent.com/u/10582038?v=3","gravatar_id":"","url":"https://api.github.com/users/SableWalnut","html_url":"https://github.com/SableWalnut","followers_url":"https://api.github.com/users/SableWalnut/followers","following_url":"https://api.github.com/users/SableWalnut/following{/other_user}","gists_url":"https://api.github.com/users/SableWalnut/gists{/gist_id}","starred_url":"https://api.github.com/users/SableWalnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SableWalnut/subscriptions","organizations_url":"https://api.github.com/users/SableWalnut/orgs","repos_url":"https://api.github.com/users/SableWalnut/repos","events_url":"https://api.github.com/users/SableWalnut/events{/privacy}","received_events_url":"https://api.github.com/users/SableWalnut/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/torchbox/wagtail/labels/component:Streamfield","name":"component:Streamfield","color":"8777ED"},{"url":"https://api.github.com/repos/torchbox/wagtail/labels/type:Enhancement","name":"type:Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-10-09T05:36:39Z","updated_at":"2016-07-05T08:37:59Z","closed_at":null,"body":"I'd like to propose a `ForeignBlock` or similar using `models.ForeignKey` as it's base for allowing integrations with other model clusters/models. It would most likely need to extend `blocks.ChooserBlock` and shouldn't be too difficult."},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/230419304","html_url":"https://github.com/torchbox/wagtail/issues/1806#issuecomment-230419304","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/1806","id":230419304,"user":{"login":"ababic","id":7779588,"avatar_url":"https://avatars.githubusercontent.com/u/7779588?v=3","gravatar_id":"","url":"https://api.github.com/users/ababic","html_url":"https://github.com/ababic","followers_url":"https://api.github.com/users/ababic/followers","following_url":"https://api.github.com/users/ababic/following{/other_user}","gists_url":"https://api.github.com/users/ababic/gists{/gist_id}","starred_url":"https://api.github.com/users/ababic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ababic/subscriptions","organizations_url":"https://api.github.com/users/ababic/orgs","repos_url":"https://api.github.com/users/ababic/repos","events_url":"https://api.github.com/users/ababic/events{/privacy}","received_events_url":"https://api.github.com/users/ababic/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T08:37:59Z","updated_at":"2016-07-05T08:37:59Z","body":"I think the blocker to having a ModelAdmin-based chooser has been: ModelAdmin classes know about the model they represent, but there's no easy way to access a ModelAdmin class when provided with model. Without moving to a 'django-like' registration method, where the relationships between models and ModelAdmin classes are stored in a central/reference-able place, I don't see how we can circumvent this. But that has a tonne of other implications that need thinking through. That's maybe a discussion for the developers board though, rather than here."}}
{"actor":{"display_login":"ababic"}}