{"action":"opened","issue":{"url":"https://api.github.com/repos/datamade/django-councilmatic/issues/44","repository_url":"https://api.github.com/repos/datamade/django-councilmatic","labels_url":"https://api.github.com/repos/datamade/django-councilmatic/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/datamade/django-councilmatic/issues/44/comments","events_url":"https://api.github.com/repos/datamade/django-councilmatic/issues/44/events","html_url":"https://github.com/datamade/django-councilmatic/issues/44","id":140339272,"number":44,"title":"Add option to avoid using unstable OCD_CITY_COUNCIL_ID","user":{"login":"patcon","id":305339,"avatar_url":"https://avatars.githubusercontent.com/u/305339?v=3","gravatar_id":"","url":"https://api.github.com/users/patcon","html_url":"https://github.com/patcon","followers_url":"https://api.github.com/users/patcon/followers","following_url":"https://api.github.com/users/patcon/following{/other_user}","gists_url":"https://api.github.com/users/patcon/gists{/gist_id}","starred_url":"https://api.github.com/users/patcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcon/subscriptions","organizations_url":"https://api.github.com/users/patcon/orgs","repos_url":"https://api.github.com/users/patcon/repos","events_url":"https://api.github.com/users/patcon/events{/privacy}","received_events_url":"https://api.github.com/users/patcon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-12T02:46:40Z","updated_at":"2016-03-12T02:46:40Z","closed_at":null,"body":"In the Canadian scrapers in scrapers-ca repo (hosted at http://scrapers.herokuapp.com/), we've made the choice to blow away the db regularly, and so OCD ids change. This is arguably something that we should eventually rethink, but for now, it's not an issue. Except in one place :)\r\n\r\nhttps://github.com/datamade/django-councilmatic/blob/6d81da28435a31eff1e7f35662515a20aa935417/councilmatic_core/models.py#L67\r\n\r\nhttps://github.com/datamade/chi-councilmatic/blob/master/councilmatic/settings_jurisdiction.py#L7\r\n\r\nWould it be possible to instead use `_organization__name` instead of `organization__ocd_id` as the filter, as this is consistent and won't lead to odd behaviour whenever we re-run loaddata.\r\n\r\ncc: @jpmckinney"}}