{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/mozillians/pulls/comments/46409275","id":46409275,"diff_hunk":"@@ -324,3 +323,10 @@ class Meta:\n \n class Skill(GroupBase):\n     ALIAS_MODEL = SkillAlias\n+\n+    def user_can_leave(self, userprofile):","path":"mozillians/groups/models.py","position":42,"original_position":42,"commit_id":"b0180700ac4f90d2a5a91244489746bb354f133f","original_commit_id":"104154826e0d91aff0b4c1dc1ec0199506e4f874","user":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"body":"No, fortunately we don't have a bug. The reason we need this now and not before, is because we added the `curators` queryset in the `user_can_leave` method in the `GroupBase`. This has as a result, when we dealing with skills, to produce a 500 error since skills don't have a similar queryset.","created_at":"2015-12-02T12:44:16Z","updated_at":"2015-12-02T12:44:16Z","html_url":"https://github.com/mozilla/mozillians/pull/1250#discussion_r46409275","pull_request_url":"https://api.github.com/repos/mozilla/mozillians/pulls/1250","_links":{"self":{"href":"https://api.github.com/repos/mozilla/mozillians/pulls/comments/46409275"},"html":{"href":"https://github.com/mozilla/mozillians/pull/1250#discussion_r46409275"},"pull_request":{"href":"https://api.github.com/repos/mozilla/mozillians/pulls/1250"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/mozillians/pulls/1250","id":45780322,"html_url":"https://github.com/mozilla/mozillians/pull/1250","diff_url":"https://github.com/mozilla/mozillians/pull/1250.diff","patch_url":"https://github.com/mozilla/mozillians/pull/1250.patch","issue_url":"https://api.github.com/repos/mozilla/mozillians/issues/1250","number":1250,"state":"open","locked":false,"title":"[fix bug 746795] Add multiple curators per group.","user":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-23T13:44:48Z","updated_at":"2015-12-02T12:44:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60cb37cea3fecc1b002aa15aaff5403352a11a90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/mozillians/pulls/1250/commits","review_comments_url":"https://api.github.com/repos/mozilla/mozillians/pulls/1250/comments","review_comment_url":"https://api.github.com/repos/mozilla/mozillians/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/mozillians/issues/1250/comments","statuses_url":"https://api.github.com/repos/mozilla/mozillians/statuses/b0180700ac4f90d2a5a91244489746bb354f133f","head":{"label":"akatsoulas:746795-multiple-curators","ref":"746795-multiple-curators","sha":"b0180700ac4f90d2a5a91244489746bb354f133f","user":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"repo":{"id":9349413,"name":"mozillians","full_name":"akatsoulas/mozillians","owner":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akatsoulas/mozillians","description":"Mozilla community directory -- A centralized directory of all Mozilla contributors!","fork":true,"url":"https://api.github.com/repos/akatsoulas/mozillians","forks_url":"https://api.github.com/repos/akatsoulas/mozillians/forks","keys_url":"https://api.github.com/repos/akatsoulas/mozillians/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akatsoulas/mozillians/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akatsoulas/mozillians/teams","hooks_url":"https://api.github.com/repos/akatsoulas/mozillians/hooks","issue_events_url":"https://api.github.com/repos/akatsoulas/mozillians/issues/events{/number}","events_url":"https://api.github.com/repos/akatsoulas/mozillians/events","assignees_url":"https://api.github.com/repos/akatsoulas/mozillians/assignees{/user}","branches_url":"https://api.github.com/repos/akatsoulas/mozillians/branches{/branch}","tags_url":"https://api.github.com/repos/akatsoulas/mozillians/tags","blobs_url":"https://api.github.com/repos/akatsoulas/mozillians/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akatsoulas/mozillians/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akatsoulas/mozillians/git/refs{/sha}","trees_url":"https://api.github.com/repos/akatsoulas/mozillians/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akatsoulas/mozillians/statuses/{sha}","languages_url":"https://api.github.com/repos/akatsoulas/mozillians/languages","stargazers_url":"https://api.github.com/repos/akatsoulas/mozillians/stargazers","contributors_url":"https://api.github.com/repos/akatsoulas/mozillians/contributors","subscribers_url":"https://api.github.com/repos/akatsoulas/mozillians/subscribers","subscription_url":"https://api.github.com/repos/akatsoulas/mozillians/subscription","commits_url":"https://api.github.com/repos/akatsoulas/mozillians/commits{/sha}","git_commits_url":"https://api.github.com/repos/akatsoulas/mozillians/git/commits{/sha}","comments_url":"https://api.github.com/repos/akatsoulas/mozillians/comments{/number}","issue_comment_url":"https://api.github.com/repos/akatsoulas/mozillians/issues/comments{/number}","contents_url":"https://api.github.com/repos/akatsoulas/mozillians/contents/{+path}","compare_url":"https://api.github.com/repos/akatsoulas/mozillians/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akatsoulas/mozillians/merges","archive_url":"https://api.github.com/repos/akatsoulas/mozillians/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akatsoulas/mozillians/downloads","issues_url":"https://api.github.com/repos/akatsoulas/mozillians/issues{/number}","pulls_url":"https://api.github.com/repos/akatsoulas/mozillians/pulls{/number}","milestones_url":"https://api.github.com/repos/akatsoulas/mozillians/milestones{/number}","notifications_url":"https://api.github.com/repos/akatsoulas/mozillians/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akatsoulas/mozillians/labels{/name}","releases_url":"https://api.github.com/repos/akatsoulas/mozillians/releases{/id}","created_at":"2013-04-10T15:34:24Z","updated_at":"2015-04-27T09:37:22Z","pushed_at":"2015-12-02T12:38:19Z","git_url":"git://github.com/akatsoulas/mozillians.git","ssh_url":"git@github.com:akatsoulas/mozillians.git","clone_url":"https://github.com/akatsoulas/mozillians.git","svn_url":"https://github.com/akatsoulas/mozillians","homepage":"https://mozillians.org/","size":31285,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"1e5b46ef47eeb4da977ea38f8da0a5b88a0db94d","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1799884,"name":"mozillians","full_name":"mozilla/mozillians","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/mozillians","description":"Mozilla community directory -- A centralized directory of all Mozilla contributors!","fork":false,"url":"https://api.github.com/repos/mozilla/mozillians","forks_url":"https://api.github.com/repos/mozilla/mozillians/forks","keys_url":"https://api.github.com/repos/mozilla/mozillians/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/mozillians/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/mozillians/teams","hooks_url":"https://api.github.com/repos/mozilla/mozillians/hooks","issue_events_url":"https://api.github.com/repos/mozilla/mozillians/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/mozillians/events","assignees_url":"https://api.github.com/repos/mozilla/mozillians/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/mozillians/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/mozillians/tags","blobs_url":"https://api.github.com/repos/mozilla/mozillians/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/mozillians/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/mozillians/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/mozillians/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/mozillians/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/mozillians/languages","stargazers_url":"https://api.github.com/repos/mozilla/mozillians/stargazers","contributors_url":"https://api.github.com/repos/mozilla/mozillians/contributors","subscribers_url":"https://api.github.com/repos/mozilla/mozillians/subscribers","subscription_url":"https://api.github.com/repos/mozilla/mozillians/subscription","commits_url":"https://api.github.com/repos/mozilla/mozillians/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/mozillians/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/mozillians/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/mozillians/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/mozillians/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/mozillians/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/mozillians/merges","archive_url":"https://api.github.com/repos/mozilla/mozillians/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/mozillians/downloads","issues_url":"https://api.github.com/repos/mozilla/mozillians/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/mozillians/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/mozillians/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/mozillians/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/mozillians/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/mozillians/releases{/id}","created_at":"2011-05-25T16:38:54Z","updated_at":"2015-11-29T19:36:53Z","pushed_at":"2015-12-02T12:38:20Z","git_url":"git://github.com/mozilla/mozillians.git","ssh_url":"git@github.com:mozilla/mozillians.git","clone_url":"https://github.com/mozilla/mozillians.git","svn_url":"https://github.com/mozilla/mozillians","homepage":"https://mozillians.org/","size":33277,"stargazers_count":161,"watchers_count":161,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":279,"mirror_url":null,"open_issues_count":16,"forks":279,"open_issues":16,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/mozillians/pulls/1250"},"html":{"href":"https://github.com/mozilla/mozillians/pull/1250"},"issue":{"href":"https://api.github.com/repos/mozilla/mozillians/issues/1250"},"comments":{"href":"https://api.github.com/repos/mozilla/mozillians/issues/1250/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/mozillians/pulls/1250/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/mozillians/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/mozillians/pulls/1250/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/mozillians/statuses/b0180700ac4f90d2a5a91244489746bb354f133f"}}}}