{"action":"created","comment":{"url":"https://api.github.com/repos/bmun/huxley/pulls/comments/33874134","id":33874134,"diff_hunk":"@@ -41,6 +41,18 @@ def get_queryset(self):\n \n         return Assignment.objects.filter(school_id=school_id)\n \n+class SchoolAssignmentsFinalize(generics.GenericAPIView):\n+    authentication_classes = (SessionAuthentication,)\n+    permission_classes = (IsSchoolAdvisorOrSuperuser,)\n+\n+    def post(self, request, *args, **kwargs):\n+        school_id = self.kwargs.get('pk', None)\n+        school = School.objects.get(id=school_id)\n+        school.assignments_finalized = True\n+        school.save()\n+\n+        return Response(status=status.HTTP_200_OK)\n+","path":"huxley/api/views/school.py","position":15,"original_position":15,"commit_id":"a62fa0b4ad1ba6e65ea99edeb72c30b1f130c177","original_commit_id":"a62fa0b4ad1ba6e65ea99edeb72c30b1f130c177","user":{"login":"kmeht","id":1120478,"avatar_url":"https://avatars.githubusercontent.com/u/1120478?v=3","gravatar_id":"","url":"https://api.github.com/users/kmeht","html_url":"https://github.com/kmeht","followers_url":"https://api.github.com/users/kmeht/followers","following_url":"https://api.github.com/users/kmeht/following{/other_user}","gists_url":"https://api.github.com/users/kmeht/gists{/gist_id}","starred_url":"https://api.github.com/users/kmeht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmeht/subscriptions","organizations_url":"https://api.github.com/users/kmeht/orgs","repos_url":"https://api.github.com/users/kmeht/repos","events_url":"https://api.github.com/users/kmeht/events{/privacy}","received_events_url":"https://api.github.com/users/kmeht/received_events","type":"User","site_admin":false},"body":"two lines","created_at":"2015-07-03T16:54:08Z","updated_at":"2015-07-03T16:54:08Z","html_url":"https://github.com/bmun/huxley/pull/397#discussion_r33874134","pull_request_url":"https://api.github.com/repos/bmun/huxley/pulls/397","_links":{"self":{"href":"https://api.github.com/repos/bmun/huxley/pulls/comments/33874134"},"html":{"href":"https://github.com/bmun/huxley/pull/397#discussion_r33874134"},"pull_request":{"href":"https://api.github.com/repos/bmun/huxley/pulls/397"}}},"pull_request":{"url":"https://api.github.com/repos/bmun/huxley/pulls/397","id":38402982,"html_url":"https://github.com/bmun/huxley/pull/397","diff_url":"https://github.com/bmun/huxley/pull/397.diff","patch_url":"https://github.com/bmun/huxley/pull/397.patch","issue_url":"https://api.github.com/repos/bmun/huxley/issues/397","number":397,"state":"open","locked":false,"title":"#361 and #362 Assignment Finalization and Delegate Creation","user":{"login":"nathanielparke","id":5566646,"avatar_url":"https://avatars.githubusercontent.com/u/5566646?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielparke","html_url":"https://github.com/nathanielparke","followers_url":"https://api.github.com/users/nathanielparke/followers","following_url":"https://api.github.com/users/nathanielparke/following{/other_user}","gists_url":"https://api.github.com/users/nathanielparke/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielparke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielparke/subscriptions","organizations_url":"https://api.github.com/users/nathanielparke/orgs","repos_url":"https://api.github.com/users/nathanielparke/repos","events_url":"https://api.github.com/users/nathanielparke/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielparke/received_events","type":"User","site_admin":false},"body":"This is the first commit of the assignment finalization and delegate creation feature. The two features are merged into one commit because much of the code used for assignment finalization was pulled from @patilpranay 's PR that was never merged.","created_at":"2015-06-24T02:47:55Z","updated_at":"2015-07-03T16:54:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5db86f35ced62994ddec7c647c274e0cf27e7454","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bmun/huxley/pulls/397/commits","review_comments_url":"https://api.github.com/repos/bmun/huxley/pulls/397/comments","review_comment_url":"https://api.github.com/repos/bmun/huxley/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bmun/huxley/issues/397/comments","statuses_url":"https://api.github.com/repos/bmun/huxley/statuses/a62fa0b4ad1ba6e65ea99edeb72c30b1f130c177","head":{"label":"nathanielparke:362_delegateCreation","ref":"362_delegateCreation","sha":"a62fa0b4ad1ba6e65ea99edeb72c30b1f130c177","user":{"login":"nathanielparke","id":5566646,"avatar_url":"https://avatars.githubusercontent.com/u/5566646?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielparke","html_url":"https://github.com/nathanielparke","followers_url":"https://api.github.com/users/nathanielparke/followers","following_url":"https://api.github.com/users/nathanielparke/following{/other_user}","gists_url":"https://api.github.com/users/nathanielparke/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielparke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielparke/subscriptions","organizations_url":"https://api.github.com/users/nathanielparke/orgs","repos_url":"https://api.github.com/users/nathanielparke/repos","events_url":"https://api.github.com/users/nathanielparke/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielparke/received_events","type":"User","site_admin":false},"repo":{"id":21375722,"name":"huxley","full_name":"nathanielparke/huxley","owner":{"login":"nathanielparke","id":5566646,"avatar_url":"https://avatars.githubusercontent.com/u/5566646?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielparke","html_url":"https://github.com/nathanielparke","followers_url":"https://api.github.com/users/nathanielparke/followers","following_url":"https://api.github.com/users/nathanielparke/following{/other_user}","gists_url":"https://api.github.com/users/nathanielparke/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielparke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielparke/subscriptions","organizations_url":"https://api.github.com/users/nathanielparke/orgs","repos_url":"https://api.github.com/users/nathanielparke/repos","events_url":"https://api.github.com/users/nathanielparke/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielparke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathanielparke/huxley","description":"Conference management system for Berkeley Model United Nations.","fork":true,"url":"https://api.github.com/repos/nathanielparke/huxley","forks_url":"https://api.github.com/repos/nathanielparke/huxley/forks","keys_url":"https://api.github.com/repos/nathanielparke/huxley/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathanielparke/huxley/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathanielparke/huxley/teams","hooks_url":"https://api.github.com/repos/nathanielparke/huxley/hooks","issue_events_url":"https://api.github.com/repos/nathanielparke/huxley/issues/events{/number}","events_url":"https://api.github.com/repos/nathanielparke/huxley/events","assignees_url":"https://api.github.com/repos/nathanielparke/huxley/assignees{/user}","branches_url":"https://api.github.com/repos/nathanielparke/huxley/branches{/branch}","tags_url":"https://api.github.com/repos/nathanielparke/huxley/tags","blobs_url":"https://api.github.com/repos/nathanielparke/huxley/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathanielparke/huxley/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathanielparke/huxley/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathanielparke/huxley/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathanielparke/huxley/statuses/{sha}","languages_url":"https://api.github.com/repos/nathanielparke/huxley/languages","stargazers_url":"https://api.github.com/repos/nathanielparke/huxley/stargazers","contributors_url":"https://api.github.com/repos/nathanielparke/huxley/contributors","subscribers_url":"https://api.github.com/repos/nathanielparke/huxley/subscribers","subscription_url":"https://api.github.com/repos/nathanielparke/huxley/subscription","commits_url":"https://api.github.com/repos/nathanielparke/huxley/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathanielparke/huxley/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathanielparke/huxley/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathanielparke/huxley/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathanielparke/huxley/contents/{+path}","compare_url":"https://api.github.com/repos/nathanielparke/huxley/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathanielparke/huxley/merges","archive_url":"https://api.github.com/repos/nathanielparke/huxley/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathanielparke/huxley/downloads","issues_url":"https://api.github.com/repos/nathanielparke/huxley/issues{/number}","pulls_url":"https://api.github.com/repos/nathanielparke/huxley/pulls{/number}","milestones_url":"https://api.github.com/repos/nathanielparke/huxley/milestones{/number}","notifications_url":"https://api.github.com/repos/nathanielparke/huxley/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathanielparke/huxley/labels{/name}","releases_url":"https://api.github.com/repos/nathanielparke/huxley/releases{/id}","created_at":"2014-07-01T05:01:16Z","updated_at":"2014-06-25T22:44:42Z","pushed_at":"2015-07-03T03:04:33Z","git_url":"git://github.com/nathanielparke/huxley.git","ssh_url":"git@github.com:nathanielparke/huxley.git","clone_url":"https://github.com/nathanielparke/huxley.git","svn_url":"https://github.com/nathanielparke/huxley","homepage":"","size":7997,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bmun:master","ref":"master","sha":"c2d97e115fab9483d810c59b4d0bb341cadcabc4","user":{"login":"bmun","id":4782099,"avatar_url":"https://avatars.githubusercontent.com/u/4782099?v=3","gravatar_id":"","url":"https://api.github.com/users/bmun","html_url":"https://github.com/bmun","followers_url":"https://api.github.com/users/bmun/followers","following_url":"https://api.github.com/users/bmun/following{/other_user}","gists_url":"https://api.github.com/users/bmun/gists{/gist_id}","starred_url":"https://api.github.com/users/bmun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmun/subscriptions","organizations_url":"https://api.github.com/users/bmun/orgs","repos_url":"https://api.github.com/users/bmun/repos","events_url":"https://api.github.com/users/bmun/events{/privacy}","received_events_url":"https://api.github.com/users/bmun/received_events","type":"Organization","site_admin":false},"repo":{"id":4620840,"name":"huxley","full_name":"bmun/huxley","owner":{"login":"bmun","id":4782099,"avatar_url":"https://avatars.githubusercontent.com/u/4782099?v=3","gravatar_id":"","url":"https://api.github.com/users/bmun","html_url":"https://github.com/bmun","followers_url":"https://api.github.com/users/bmun/followers","following_url":"https://api.github.com/users/bmun/following{/other_user}","gists_url":"https://api.github.com/users/bmun/gists{/gist_id}","starred_url":"https://api.github.com/users/bmun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmun/subscriptions","organizations_url":"https://api.github.com/users/bmun/orgs","repos_url":"https://api.github.com/users/bmun/repos","events_url":"https://api.github.com/users/bmun/events{/privacy}","received_events_url":"https://api.github.com/users/bmun/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bmun/huxley","description":"Conference management system for Berkeley Model United Nations.","fork":false,"url":"https://api.github.com/repos/bmun/huxley","forks_url":"https://api.github.com/repos/bmun/huxley/forks","keys_url":"https://api.github.com/repos/bmun/huxley/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmun/huxley/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmun/huxley/teams","hooks_url":"https://api.github.com/repos/bmun/huxley/hooks","issue_events_url":"https://api.github.com/repos/bmun/huxley/issues/events{/number}","events_url":"https://api.github.com/repos/bmun/huxley/events","assignees_url":"https://api.github.com/repos/bmun/huxley/assignees{/user}","branches_url":"https://api.github.com/repos/bmun/huxley/branches{/branch}","tags_url":"https://api.github.com/repos/bmun/huxley/tags","blobs_url":"https://api.github.com/repos/bmun/huxley/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmun/huxley/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmun/huxley/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmun/huxley/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmun/huxley/statuses/{sha}","languages_url":"https://api.github.com/repos/bmun/huxley/languages","stargazers_url":"https://api.github.com/repos/bmun/huxley/stargazers","contributors_url":"https://api.github.com/repos/bmun/huxley/contributors","subscribers_url":"https://api.github.com/repos/bmun/huxley/subscribers","subscription_url":"https://api.github.com/repos/bmun/huxley/subscription","commits_url":"https://api.github.com/repos/bmun/huxley/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmun/huxley/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmun/huxley/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmun/huxley/issues/comments{/number}","contents_url":"https://api.github.com/repos/bmun/huxley/contents/{+path}","compare_url":"https://api.github.com/repos/bmun/huxley/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmun/huxley/merges","archive_url":"https://api.github.com/repos/bmun/huxley/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmun/huxley/downloads","issues_url":"https://api.github.com/repos/bmun/huxley/issues{/number}","pulls_url":"https://api.github.com/repos/bmun/huxley/pulls{/number}","milestones_url":"https://api.github.com/repos/bmun/huxley/milestones{/number}","notifications_url":"https://api.github.com/repos/bmun/huxley/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmun/huxley/labels{/name}","releases_url":"https://api.github.com/repos/bmun/huxley/releases{/id}","created_at":"2012-06-11T03:53:05Z","updated_at":"2015-02-08T06:06:45Z","pushed_at":"2015-07-03T03:04:33Z","git_url":"git://github.com/bmun/huxley.git","ssh_url":"git@github.com:bmun/huxley.git","clone_url":"https://github.com/bmun/huxley.git","svn_url":"https://github.com/bmun/huxley","homepage":"","size":11156,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":30,"forks":12,"open_issues":30,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bmun/huxley/pulls/397"},"html":{"href":"https://github.com/bmun/huxley/pull/397"},"issue":{"href":"https://api.github.com/repos/bmun/huxley/issues/397"},"comments":{"href":"https://api.github.com/repos/bmun/huxley/issues/397/comments"},"review_comments":{"href":"https://api.github.com/repos/bmun/huxley/pulls/397/comments"},"review_comment":{"href":"https://api.github.com/repos/bmun/huxley/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bmun/huxley/pulls/397/commits"},"statuses":{"href":"https://api.github.com/repos/bmun/huxley/statuses/a62fa0b4ad1ba6e65ea99edeb72c30b1f130c177"}}}}