{"action":"created","comment":{"url":"https://api.github.com/repos/praekelt/mobileu/pulls/comments/39363213","id":39363213,"diff_hunk":"@@ -19,6 +21,15 @@ def send_sms(x, y):\n     return x + y\n \n \n+def get_teacher_list():\n+    teacher_list = TeacherClass.objects.filter(teacher__email__isnull=False)\\\n+        .distinct('teacher')\n+    for rel in teacher_list:\n+        if not validate_email(rel.teacher.email):\n+            rel.delete()","path":"mobileu/tasks.py","position":18,"original_position":18,"commit_id":"026d831a293c7d827f3c968a49360a5c9c2328aa","original_commit_id":"026d831a293c7d827f3c968a49360a5c9c2328aa","user":{"login":"msinovcic","id":10883930,"avatar_url":"https://avatars.githubusercontent.com/u/10883930?v=3","gravatar_id":"","url":"https://api.github.com/users/msinovcic","html_url":"https://github.com/msinovcic","followers_url":"https://api.github.com/users/msinovcic/followers","following_url":"https://api.github.com/users/msinovcic/following{/other_user}","gists_url":"https://api.github.com/users/msinovcic/gists{/gist_id}","starred_url":"https://api.github.com/users/msinovcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msinovcic/subscriptions","organizations_url":"https://api.github.com/users/msinovcic/orgs","repos_url":"https://api.github.com/users/msinovcic/repos","events_url":"https://api.github.com/users/msinovcic/events{/privacy}","received_events_url":"https://api.github.com/users/msinovcic/received_events","type":"User","site_admin":false},"body":"I think you might be right. Will change it and make it use exclude to remove the unwanted records.","created_at":"2015-09-14T06:04:04Z","updated_at":"2015-09-14T06:04:04Z","html_url":"https://github.com/praekelt/mobileu/pull/226#discussion_r39363213","pull_request_url":"https://api.github.com/repos/praekelt/mobileu/pulls/226","_links":{"self":{"href":"https://api.github.com/repos/praekelt/mobileu/pulls/comments/39363213"},"html":{"href":"https://github.com/praekelt/mobileu/pull/226#discussion_r39363213"},"pull_request":{"href":"https://api.github.com/repos/praekelt/mobileu/pulls/226"}}},"pull_request":{"url":"https://api.github.com/repos/praekelt/mobileu/pulls/226","id":44760434,"html_url":"https://github.com/praekelt/mobileu/pull/226","diff_url":"https://github.com/praekelt/mobileu/pull/226.diff","patch_url":"https://github.com/praekelt/mobileu/pull/226.patch","issue_url":"https://api.github.com/repos/praekelt/mobileu/issues/226","number":226,"state":"open","locked":false,"title":"Feature/teacher reports","user":{"login":"msinovcic","id":10883930,"avatar_url":"https://avatars.githubusercontent.com/u/10883930?v=3","gravatar_id":"","url":"https://api.github.com/users/msinovcic","html_url":"https://github.com/msinovcic","followers_url":"https://api.github.com/users/msinovcic/followers","following_url":"https://api.github.com/users/msinovcic/following{/other_user}","gists_url":"https://api.github.com/users/msinovcic/gists{/gist_id}","starred_url":"https://api.github.com/users/msinovcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msinovcic/subscriptions","organizations_url":"https://api.github.com/users/msinovcic/orgs","repos_url":"https://api.github.com/users/msinovcic/repos","events_url":"https://api.github.com/users/msinovcic/events{/privacy}","received_events_url":"https://api.github.com/users/msinovcic/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-11T09:05:09Z","updated_at":"2015-09-14T06:04:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe5059e141646a3703ee8fd3e7aa8ec44c0a84d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/praekelt/mobileu/pulls/226/commits","review_comments_url":"https://api.github.com/repos/praekelt/mobileu/pulls/226/comments","review_comment_url":"https://api.github.com/repos/praekelt/mobileu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekelt/mobileu/issues/226/comments","statuses_url":"https://api.github.com/repos/praekelt/mobileu/statuses/026d831a293c7d827f3c968a49360a5c9c2328aa","head":{"label":"praekelt:feature/teacher-reports","ref":"feature/teacher-reports","sha":"026d831a293c7d827f3c968a49360a5c9c2328aa","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":18637218,"name":"mobileu","full_name":"praekelt/mobileu","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/mobileu","description":"MobileU MOOC project","fork":false,"url":"https://api.github.com/repos/praekelt/mobileu","forks_url":"https://api.github.com/repos/praekelt/mobileu/forks","keys_url":"https://api.github.com/repos/praekelt/mobileu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/mobileu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/mobileu/teams","hooks_url":"https://api.github.com/repos/praekelt/mobileu/hooks","issue_events_url":"https://api.github.com/repos/praekelt/mobileu/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/mobileu/events","assignees_url":"https://api.github.com/repos/praekelt/mobileu/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/mobileu/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/mobileu/tags","blobs_url":"https://api.github.com/repos/praekelt/mobileu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/mobileu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/mobileu/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/mobileu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/mobileu/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/mobileu/languages","stargazers_url":"https://api.github.com/repos/praekelt/mobileu/stargazers","contributors_url":"https://api.github.com/repos/praekelt/mobileu/contributors","subscribers_url":"https://api.github.com/repos/praekelt/mobileu/subscribers","subscription_url":"https://api.github.com/repos/praekelt/mobileu/subscription","commits_url":"https://api.github.com/repos/praekelt/mobileu/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/mobileu/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/mobileu/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/mobileu/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/mobileu/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/mobileu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/mobileu/merges","archive_url":"https://api.github.com/repos/praekelt/mobileu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/mobileu/downloads","issues_url":"https://api.github.com/repos/praekelt/mobileu/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/mobileu/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/mobileu/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/mobileu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/mobileu/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/mobileu/releases{/id}","created_at":"2014-04-10T13:22:42Z","updated_at":"2015-05-08T12:50:09Z","pushed_at":"2015-09-11T09:05:10Z","git_url":"git://github.com/praekelt/mobileu.git","ssh_url":"git@github.com:praekelt/mobileu.git","clone_url":"https://github.com/praekelt/mobileu.git","svn_url":"https://github.com/praekelt/mobileu","homepage":null,"size":3377,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":1,"default_branch":"develop"}},"base":{"label":"praekelt:develop","ref":"develop","sha":"83e4c4ef3253203f1b47dffb870cffdbef8e4df2","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":18637218,"name":"mobileu","full_name":"praekelt/mobileu","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/mobileu","description":"MobileU MOOC project","fork":false,"url":"https://api.github.com/repos/praekelt/mobileu","forks_url":"https://api.github.com/repos/praekelt/mobileu/forks","keys_url":"https://api.github.com/repos/praekelt/mobileu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/mobileu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/mobileu/teams","hooks_url":"https://api.github.com/repos/praekelt/mobileu/hooks","issue_events_url":"https://api.github.com/repos/praekelt/mobileu/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/mobileu/events","assignees_url":"https://api.github.com/repos/praekelt/mobileu/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/mobileu/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/mobileu/tags","blobs_url":"https://api.github.com/repos/praekelt/mobileu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/mobileu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/mobileu/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/mobileu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/mobileu/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/mobileu/languages","stargazers_url":"https://api.github.com/repos/praekelt/mobileu/stargazers","contributors_url":"https://api.github.com/repos/praekelt/mobileu/contributors","subscribers_url":"https://api.github.com/repos/praekelt/mobileu/subscribers","subscription_url":"https://api.github.com/repos/praekelt/mobileu/subscription","commits_url":"https://api.github.com/repos/praekelt/mobileu/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/mobileu/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/mobileu/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/mobileu/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/mobileu/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/mobileu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/mobileu/merges","archive_url":"https://api.github.com/repos/praekelt/mobileu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/mobileu/downloads","issues_url":"https://api.github.com/repos/praekelt/mobileu/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/mobileu/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/mobileu/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/mobileu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/mobileu/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/mobileu/releases{/id}","created_at":"2014-04-10T13:22:42Z","updated_at":"2015-05-08T12:50:09Z","pushed_at":"2015-09-11T09:05:10Z","git_url":"git://github.com/praekelt/mobileu.git","ssh_url":"git@github.com:praekelt/mobileu.git","clone_url":"https://github.com/praekelt/mobileu.git","svn_url":"https://github.com/praekelt/mobileu","homepage":null,"size":3377,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekelt/mobileu/pulls/226"},"html":{"href":"https://github.com/praekelt/mobileu/pull/226"},"issue":{"href":"https://api.github.com/repos/praekelt/mobileu/issues/226"},"comments":{"href":"https://api.github.com/repos/praekelt/mobileu/issues/226/comments"},"review_comments":{"href":"https://api.github.com/repos/praekelt/mobileu/pulls/226/comments"},"review_comment":{"href":"https://api.github.com/repos/praekelt/mobileu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekelt/mobileu/pulls/226/commits"},"statuses":{"href":"https://api.github.com/repos/praekelt/mobileu/statuses/026d831a293c7d827f3c968a49360a5c9c2328aa"}}}}