{"action":"created","issue":{"url":"https://api.github.com/repos/morepath/morepath/issues/395","repository_url":"https://api.github.com/repos/morepath/morepath","labels_url":"https://api.github.com/repos/morepath/morepath/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/morepath/morepath/issues/395/comments","events_url":"https://api.github.com/repos/morepath/morepath/issues/395/events","html_url":"https://github.com/morepath/morepath/issues/395","id":149148559,"number":395,"title":"defer_class_links","user":{"login":"faassen","id":327472,"avatar_url":"https://avatars.githubusercontent.com/u/327472?v=3","gravatar_id":"","url":"https://api.github.com/users/faassen","html_url":"https://github.com/faassen","followers_url":"https://api.github.com/users/faassen/followers","following_url":"https://api.github.com/users/faassen/following{/other_user}","gists_url":"https://api.github.com/users/faassen/gists{/gist_id}","starred_url":"https://api.github.com/users/faassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faassen/subscriptions","organizations_url":"https://api.github.com/users/faassen/orgs","repos_url":"https://api.github.com/users/faassen/repos","events_url":"https://api.github.com/users/faassen/events{/privacy}","received_events_url":"https://api.github.com/users/faassen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/morepath/morepath/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/morepath/morepath/milestones/13","html_url":"https://github.com/morepath/morepath/milestones/0.14","labels_url":"https://api.github.com/repos/morepath/morepath/milestones/13/labels","id":1687110,"number":13,"title":"0.14","description":"","creator":{"login":"faassen","id":327472,"avatar_url":"https://avatars.githubusercontent.com/u/327472?v=3","gravatar_id":"","url":"https://api.github.com/users/faassen","html_url":"https://github.com/faassen","followers_url":"https://api.github.com/users/faassen/followers","following_url":"https://api.github.com/users/faassen/following{/other_user}","gists_url":"https://api.github.com/users/faassen/gists{/gist_id}","starred_url":"https://api.github.com/users/faassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faassen/subscriptions","organizations_url":"https://api.github.com/users/faassen/orgs","repos_url":"https://api.github.com/users/faassen/repos","events_url":"https://api.github.com/users/faassen/events{/privacy}","received_events_url":"https://api.github.com/users/faassen/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":9,"state":"open","created_at":"2016-04-06T12:22:34Z","updated_at":"2016-04-18T13:19:23Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-18T13:19:11Z","updated_at":"2016-04-19T08:53:08Z","closed_at":null,"body":"class links don't obey defer_links as they cannot. But we could introduce a defer_class_links which operates at a slightly lower level that can do the right thing for class links. It won't get the model instance but instead it gets the variables just like class link does. The default behavior for defer_links should be to use defer_class_links so you can define just defer_class_links and have everything work.\r\n"},"comment":{"url":"https://api.github.com/repos/morepath/morepath/issues/comments/211807569","html_url":"https://github.com/morepath/morepath/issues/395#issuecomment-211807569","issue_url":"https://api.github.com/repos/morepath/morepath/issues/395","id":211807569,"user":{"login":"faassen","id":327472,"avatar_url":"https://avatars.githubusercontent.com/u/327472?v=3","gravatar_id":"","url":"https://api.github.com/users/faassen","html_url":"https://github.com/faassen","followers_url":"https://api.github.com/users/faassen/followers","following_url":"https://api.github.com/users/faassen/following{/other_user}","gists_url":"https://api.github.com/users/faassen/gists{/gist_id}","starred_url":"https://api.github.com/users/faassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faassen/subscriptions","organizations_url":"https://api.github.com/users/faassen/orgs","repos_url":"https://api.github.com/users/faassen/repos","events_url":"https://api.github.com/users/faassen/events{/privacy}","received_events_url":"https://api.github.com/users/faassen/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T08:53:08Z","updated_at":"2016-04-19T08:53:08Z","body":"I think defer_class_links and defer_links should conflict; you can implement one but not both. You're better off implementing defer_class_links if you can, because it will work for both class links and object links. I could make it so you could have both at the same time, but might actually lead to more maintenance problems than just refactoring a defer_links into a defer_class_links.\r\n"}}