{"action":"opened","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1212","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1212/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1212/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1212/events","html_url":"https://github.com/phoenixframework/phoenix/issues/1212","id":106523391,"number":1212,"title":"Automatically import Ecto.Changeset into Ecto.Model","user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-15T10:01:48Z","updated_at":"2015-09-15T10:01:48Z","closed_at":null,"body":"It was a mistake on Ecto's part to automatically import changeset functions into Ecto.Model. I would like to offset this by automatically adding this to `def model` in web/web.ex:\r\n\r\n```elixir\r\n      import Ecto.Changeset\r\n      import Ecto.Query, only: [from: 1, from: 2]\r\n```\r\n\r\nThis way, if we change Ecto to not longer do it automatically, Phoenix will be covered and Phoenix will also be more explicit by default.\r\n\r\nThis should ship with 1.0.3."}}