{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/comments/72256053","id":72256053,"diff_hunk":"@@ -0,0 +1,44 @@\n+from django.contrib.postgres import fields\n+from django.db import models\n+from django.conf import settings\n+\n+\n+from osf_models import models as osf_models_models\n+from osf_models.exceptions import UserNotAffiliatedError\n+from osf_models.models import NodeLog\n+from osf_models.models.mixins import Loggable\n+from osf_models.utils.auth import Auth\n+\n+\n+class Institution(Loggable, osf_models_models.base.GuidMixin, osf_models_models.base.BaseModel):","path":"osf_models/models/institution.py","position":13,"original_position":13,"commit_id":"f2de913f62361668a46df24e6cae6b11e79e584b","original_commit_id":"f2de913f62361668a46df24e6cae6b11e79e584b","user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"body":"Oooh, in v1, yes. I thought we were talking about the new model. So we'll get rid of the `.node` attribute and the attribute proxying here then?","created_at":"2016-07-26T14:09:11Z","updated_at":"2016-07-26T14:09:11Z","html_url":"https://github.com/CenterForOpenScience/osf-models/pull/12#discussion_r72256053","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/comments/72256053"},"html":{"href":"https://github.com/CenterForOpenScience/osf-models/pull/12#discussion_r72256053"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/12","id":78772241,"html_url":"https://github.com/CenterForOpenScience/osf-models/pull/12","diff_url":"https://github.com/CenterForOpenScience/osf-models/pull/12.diff","patch_url":"https://github.com/CenterForOpenScience/osf-models/pull/12.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues/12","number":12,"state":"open","locked":false,"title":"Feature/typed models","user":{"login":"cwisecarver","id":3709,"avatar_url":"https://avatars.githubusercontent.com/u/3709?v=3","gravatar_id":"","url":"https://api.github.com/users/cwisecarver","html_url":"https://github.com/cwisecarver","followers_url":"https://api.github.com/users/cwisecarver/followers","following_url":"https://api.github.com/users/cwisecarver/following{/other_user}","gists_url":"https://api.github.com/users/cwisecarver/gists{/gist_id}","starred_url":"https://api.github.com/users/cwisecarver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwisecarver/subscriptions","organizations_url":"https://api.github.com/users/cwisecarver/orgs","repos_url":"https://api.github.com/users/cwisecarver/repos","events_url":"https://api.github.com/users/cwisecarver/events{/privacy}","received_events_url":"https://api.github.com/users/cwisecarver/received_events","type":"User","site_admin":false},"body":"Switched the children of Node into typed models that inherit from AbstractNode.\r\n\r\n@sloria Have a look in the morning and let me know what you think. This is based off the remove dependencies branch but it turns the Sanction-based models back in and switches most things back to inheriting from website.*","created_at":"2016-07-26T00:02:56Z","updated_at":"2016-07-26T14:09:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd006a5e91e8d4762622981b1c30320355ae074e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/12/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/12/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues/12/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/statuses/f2de913f62361668a46df24e6cae6b11e79e584b","head":{"label":"CenterForOpenScience:feature/typed-models","ref":"feature/typed-models","sha":"f2de913f62361668a46df24e6cae6b11e79e584b","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":54757593,"name":"osf-models","full_name":"CenterForOpenScience/osf-models","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf-models","description":"[in progress] Django models for the OSF","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf-models","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/deployments","created_at":"2016-03-26T01:54:15Z","updated_at":"2016-07-18T18:59:19Z","pushed_at":"2016-07-26T00:02:56Z","git_url":"git://github.com/CenterForOpenScience/osf-models.git","ssh_url":"git@github.com:CenterForOpenScience/osf-models.git","clone_url":"https://github.com/CenterForOpenScience/osf-models.git","svn_url":"https://github.com/CenterForOpenScience/osf-models","homepage":"","size":157,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"CenterForOpenScience:master","ref":"master","sha":"24b3e2ffc7631c491932e17cc6f37cdaaec26ebd","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":54757593,"name":"osf-models","full_name":"CenterForOpenScience/osf-models","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf-models","description":"[in progress] Django models for the OSF","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf-models","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/osf-models/deployments","created_at":"2016-03-26T01:54:15Z","updated_at":"2016-07-18T18:59:19Z","pushed_at":"2016-07-26T00:02:56Z","git_url":"git://github.com/CenterForOpenScience/osf-models.git","ssh_url":"git@github.com:CenterForOpenScience/osf-models.git","clone_url":"https://github.com/CenterForOpenScience/osf-models.git","svn_url":"https://github.com/CenterForOpenScience/osf-models","homepage":"","size":157,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/12"},"html":{"href":"https://github.com/CenterForOpenScience/osf-models/pull/12"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues/12"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf-models/statuses/f2de913f62361668a46df24e6cae6b11e79e584b"}}}}
{"actor":{"display_login":"sloria"}}