{"action":"created","issue":{"url":"https://api.github.com/repos/mysociety/yournextrepresentative/issues/602","labels_url":"https://api.github.com/repos/mysociety/yournextrepresentative/issues/602/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/yournextrepresentative/issues/602/comments","events_url":"https://api.github.com/repos/mysociety/yournextrepresentative/issues/602/events","html_url":"https://github.com/mysociety/yournextrepresentative/issues/602","id":123498251,"number":602,"title":"Multiple organization election","user":{"login":"evz","id":551491,"avatar_url":"https://avatars.githubusercontent.com/u/551491?v=3","gravatar_id":"","url":"https://api.github.com/users/evz","html_url":"https://github.com/evz","followers_url":"https://api.github.com/users/evz/followers","following_url":"https://api.github.com/users/evz/following{/other_user}","gists_url":"https://api.github.com/users/evz/gists{/gist_id}","starred_url":"https://api.github.com/users/evz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evz/subscriptions","organizations_url":"https://api.github.com/users/evz/orgs","repos_url":"https://api.github.com/users/evz/repos","events_url":"https://api.github.com/users/evz/events{/privacy}","received_events_url":"https://api.github.com/users/evz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-22T15:11:55Z","updated_at":"2015-12-22T15:40:53Z","closed_at":null,"body":"Just checking out the new Popolo changes and I'm curious as to why there is a one-to-many relationship between the Election model and the Organization model. I'm not sure how common this is in various parts of the world but it would seem that for any given election, you're probably going to be electing people to more than one organization. So, for instance, here in the US, states will have an upper and lower chamber which I'd describe as separate organizations but, more often than not, we vote for Posts in both of those organizations on the same day (as well as potentially local or county level organizations in some jurisdictions). In the former PopIt backed version I was able to describe an Election which had several Organizations like so: https://github.com/mysociety/yournextrepresentative/blob/93ff507d96d8b24690b734a9784870decf9a6747/elections/st_paul_municipal_2015/settings.py#L7-L44 (in that example there are Posts being voted on for both the City Council and the School Board). \r\n\r\nPerhaps I'll take a crack at submitting a pull request that addresses this (unless there is some major reason you've made that relationship work that way). "},"comment":{"url":"https://api.github.com/repos/mysociety/yournextrepresentative/issues/comments/166650321","html_url":"https://github.com/mysociety/yournextrepresentative/issues/602#issuecomment-166650321","issue_url":"https://api.github.com/repos/mysociety/yournextrepresentative/issues/602","id":166650321,"user":{"login":"evz","id":551491,"avatar_url":"https://avatars.githubusercontent.com/u/551491?v=3","gravatar_id":"","url":"https://api.github.com/users/evz","html_url":"https://github.com/evz","followers_url":"https://api.github.com/users/evz/followers","following_url":"https://api.github.com/users/evz/following{/other_user}","gists_url":"https://api.github.com/users/evz/gists{/gist_id}","starred_url":"https://api.github.com/users/evz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evz/subscriptions","organizations_url":"https://api.github.com/users/evz/orgs","repos_url":"https://api.github.com/users/evz/repos","events_url":"https://api.github.com/users/evz/events{/privacy}","received_events_url":"https://api.github.com/users/evz/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T15:40:53Z","updated_at":"2015-12-22T15:40:53Z","body":"Oh, so one should just create several Elections within one's election app? One for each Organization with Posts being elected? "}}