{"action":"created","comment":{"url":"https://api.github.com/repos/FOSSEE/online_test/pulls/comments/79779594","id":79779594,"diff_hunk":"@@ -150,6 +156,23 @@ def get_teachers(self):\n     def remove_teachers(self, *teachers):\n         self.teachers.remove(*teachers)\n \n+    def create_demo(self, user):\n+        course = Course.objects.filter(creator=user, name=\"Yaksh Demo course\")\n+        if not course:\n+            course = Course.objects.create(name=\"Yaksh Demo course\",\n+                                           enrollment=\"open\",\n+                                           creator=user)\n+            quiz = Quiz()\n+            demo_quiz = quiz.create_demo_quiz(course)\n+            demo_ques = Question()\n+            demo_ques.create_demo_questions(user)\n+            demo_que_ppr = QuestionPaper()\n+            demo_que_ppr.create_demo_que_ppr(demo_quiz)","path":"yaksh/models.py","position":31,"original_position":31,"commit_id":"a689afd85ef3f0e4ddb8255e06c50f400bebd165","original_commit_id":"a689afd85ef3f0e4ddb8255e06c50f400bebd165","user":{"login":"prabhuramachandran","id":272585,"avatar_url":"https://avatars.githubusercontent.com/u/272585?v=3","gravatar_id":"","url":"https://api.github.com/users/prabhuramachandran","html_url":"https://github.com/prabhuramachandran","followers_url":"https://api.github.com/users/prabhuramachandran/followers","following_url":"https://api.github.com/users/prabhuramachandran/following{/other_user}","gists_url":"https://api.github.com/users/prabhuramachandran/gists{/gist_id}","starred_url":"https://api.github.com/users/prabhuramachandran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabhuramachandran/subscriptions","organizations_url":"https://api.github.com/users/prabhuramachandran/orgs","repos_url":"https://api.github.com/users/prabhuramachandran/repos","events_url":"https://api.github.com/users/prabhuramachandran/events{/privacy}","received_events_url":"https://api.github.com/users/prabhuramachandran/received_events","type":"User","site_admin":false},"body":"Can this method be `create_demo_quiz_paper`?","created_at":"2016-09-21T08:09:41Z","updated_at":"2016-09-21T08:09:41Z","html_url":"https://github.com/FOSSEE/online_test/pull/127#discussion_r79779594","pull_request_url":"https://api.github.com/repos/FOSSEE/online_test/pulls/127","_links":{"self":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/comments/79779594"},"html":{"href":"https://github.com/FOSSEE/online_test/pull/127#discussion_r79779594"},"pull_request":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/127"}}},"pull_request":{"url":"https://api.github.com/repos/FOSSEE/online_test/pulls/127","id":82531707,"html_url":"https://github.com/FOSSEE/online_test/pull/127","diff_url":"https://github.com/FOSSEE/online_test/pull/127.diff","patch_url":"https://github.com/FOSSEE/online_test/pull/127.patch","issue_url":"https://api.github.com/repos/FOSSEE/online_test/issues/127","number":127,"state":"open","locked":false,"title":"Create course fixtures","user":{"login":"adityacp","id":15092744,"avatar_url":"https://avatars.githubusercontent.com/u/15092744?v=3","gravatar_id":"","url":"https://api.github.com/users/adityacp","html_url":"https://github.com/adityacp","followers_url":"https://api.github.com/users/adityacp/followers","following_url":"https://api.github.com/users/adityacp/following{/other_user}","gists_url":"https://api.github.com/users/adityacp/gists{/gist_id}","starred_url":"https://api.github.com/users/adityacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityacp/subscriptions","organizations_url":"https://api.github.com/users/adityacp/orgs","repos_url":"https://api.github.com/users/adityacp/repos","events_url":"https://api.github.com/users/adityacp/events{/privacy}","received_events_url":"https://api.github.com/users/adityacp/received_events","type":"User","site_admin":false},"body":"Created a Fixture for creating Demo Course, Demo Quiz\r\nCreated a Management command to create Demo Course","created_at":"2016-08-24T12:20:21Z","updated_at":"2016-09-21T08:09:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f0895f8305d40281e6a6d117f0112615667f3d7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FOSSEE/online_test/pulls/127/commits","review_comments_url":"https://api.github.com/repos/FOSSEE/online_test/pulls/127/comments","review_comment_url":"https://api.github.com/repos/FOSSEE/online_test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FOSSEE/online_test/issues/127/comments","statuses_url":"https://api.github.com/repos/FOSSEE/online_test/statuses/a689afd85ef3f0e4ddb8255e06c50f400bebd165","head":{"label":"adityacp:create_course_fixtures","ref":"create_course_fixtures","sha":"a689afd85ef3f0e4ddb8255e06c50f400bebd165","user":{"login":"adityacp","id":15092744,"avatar_url":"https://avatars.githubusercontent.com/u/15092744?v=3","gravatar_id":"","url":"https://api.github.com/users/adityacp","html_url":"https://github.com/adityacp","followers_url":"https://api.github.com/users/adityacp/followers","following_url":"https://api.github.com/users/adityacp/following{/other_user}","gists_url":"https://api.github.com/users/adityacp/gists{/gist_id}","starred_url":"https://api.github.com/users/adityacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityacp/subscriptions","organizations_url":"https://api.github.com/users/adityacp/orgs","repos_url":"https://api.github.com/users/adityacp/repos","events_url":"https://api.github.com/users/adityacp/events{/privacy}","received_events_url":"https://api.github.com/users/adityacp/received_events","type":"User","site_admin":false},"repo":{"id":58149021,"name":"online_test","full_name":"adityacp/online_test","owner":{"login":"adityacp","id":15092744,"avatar_url":"https://avatars.githubusercontent.com/u/15092744?v=3","gravatar_id":"","url":"https://api.github.com/users/adityacp","html_url":"https://github.com/adityacp","followers_url":"https://api.github.com/users/adityacp/followers","following_url":"https://api.github.com/users/adityacp/following{/other_user}","gists_url":"https://api.github.com/users/adityacp/gists{/gist_id}","starred_url":"https://api.github.com/users/adityacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityacp/subscriptions","organizations_url":"https://api.github.com/users/adityacp/orgs","repos_url":"https://api.github.com/users/adityacp/repos","events_url":"https://api.github.com/users/adityacp/events{/privacy}","received_events_url":"https://api.github.com/users/adityacp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adityacp/online_test","description":"Online quiz/exam taking application. ","fork":true,"url":"https://api.github.com/repos/adityacp/online_test","forks_url":"https://api.github.com/repos/adityacp/online_test/forks","keys_url":"https://api.github.com/repos/adityacp/online_test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adityacp/online_test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adityacp/online_test/teams","hooks_url":"https://api.github.com/repos/adityacp/online_test/hooks","issue_events_url":"https://api.github.com/repos/adityacp/online_test/issues/events{/number}","events_url":"https://api.github.com/repos/adityacp/online_test/events","assignees_url":"https://api.github.com/repos/adityacp/online_test/assignees{/user}","branches_url":"https://api.github.com/repos/adityacp/online_test/branches{/branch}","tags_url":"https://api.github.com/repos/adityacp/online_test/tags","blobs_url":"https://api.github.com/repos/adityacp/online_test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adityacp/online_test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adityacp/online_test/git/refs{/sha}","trees_url":"https://api.github.com/repos/adityacp/online_test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adityacp/online_test/statuses/{sha}","languages_url":"https://api.github.com/repos/adityacp/online_test/languages","stargazers_url":"https://api.github.com/repos/adityacp/online_test/stargazers","contributors_url":"https://api.github.com/repos/adityacp/online_test/contributors","subscribers_url":"https://api.github.com/repos/adityacp/online_test/subscribers","subscription_url":"https://api.github.com/repos/adityacp/online_test/subscription","commits_url":"https://api.github.com/repos/adityacp/online_test/commits{/sha}","git_commits_url":"https://api.github.com/repos/adityacp/online_test/git/commits{/sha}","comments_url":"https://api.github.com/repos/adityacp/online_test/comments{/number}","issue_comment_url":"https://api.github.com/repos/adityacp/online_test/issues/comments{/number}","contents_url":"https://api.github.com/repos/adityacp/online_test/contents/{+path}","compare_url":"https://api.github.com/repos/adityacp/online_test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adityacp/online_test/merges","archive_url":"https://api.github.com/repos/adityacp/online_test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adityacp/online_test/downloads","issues_url":"https://api.github.com/repos/adityacp/online_test/issues{/number}","pulls_url":"https://api.github.com/repos/adityacp/online_test/pulls{/number}","milestones_url":"https://api.github.com/repos/adityacp/online_test/milestones{/number}","notifications_url":"https://api.github.com/repos/adityacp/online_test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adityacp/online_test/labels{/name}","releases_url":"https://api.github.com/repos/adityacp/online_test/releases{/id}","deployments_url":"https://api.github.com/repos/adityacp/online_test/deployments","created_at":"2016-05-05T17:36:03Z","updated_at":"2016-05-05T17:36:04Z","pushed_at":"2016-09-20T10:40:11Z","git_url":"git://github.com/adityacp/online_test.git","ssh_url":"git@github.com:adityacp/online_test.git","clone_url":"https://github.com/adityacp/online_test.git","svn_url":"https://github.com/adityacp/online_test","homepage":"http://fossee.in","size":5108,"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":"FOSSEE:master","ref":"master","sha":"5b2a6fe665a3add0916a255e5436841b820146ee","user":{"login":"FOSSEE","id":703487,"avatar_url":"https://avatars.githubusercontent.com/u/703487?v=3","gravatar_id":"","url":"https://api.github.com/users/FOSSEE","html_url":"https://github.com/FOSSEE","followers_url":"https://api.github.com/users/FOSSEE/followers","following_url":"https://api.github.com/users/FOSSEE/following{/other_user}","gists_url":"https://api.github.com/users/FOSSEE/gists{/gist_id}","starred_url":"https://api.github.com/users/FOSSEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FOSSEE/subscriptions","organizations_url":"https://api.github.com/users/FOSSEE/orgs","repos_url":"https://api.github.com/users/FOSSEE/repos","events_url":"https://api.github.com/users/FOSSEE/events{/privacy}","received_events_url":"https://api.github.com/users/FOSSEE/received_events","type":"Organization","site_admin":false},"repo":{"id":2734092,"name":"online_test","full_name":"FOSSEE/online_test","owner":{"login":"FOSSEE","id":703487,"avatar_url":"https://avatars.githubusercontent.com/u/703487?v=3","gravatar_id":"","url":"https://api.github.com/users/FOSSEE","html_url":"https://github.com/FOSSEE","followers_url":"https://api.github.com/users/FOSSEE/followers","following_url":"https://api.github.com/users/FOSSEE/following{/other_user}","gists_url":"https://api.github.com/users/FOSSEE/gists{/gist_id}","starred_url":"https://api.github.com/users/FOSSEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FOSSEE/subscriptions","organizations_url":"https://api.github.com/users/FOSSEE/orgs","repos_url":"https://api.github.com/users/FOSSEE/repos","events_url":"https://api.github.com/users/FOSSEE/events{/privacy}","received_events_url":"https://api.github.com/users/FOSSEE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FOSSEE/online_test","description":"Online quiz/exam taking application. ","fork":false,"url":"https://api.github.com/repos/FOSSEE/online_test","forks_url":"https://api.github.com/repos/FOSSEE/online_test/forks","keys_url":"https://api.github.com/repos/FOSSEE/online_test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FOSSEE/online_test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FOSSEE/online_test/teams","hooks_url":"https://api.github.com/repos/FOSSEE/online_test/hooks","issue_events_url":"https://api.github.com/repos/FOSSEE/online_test/issues/events{/number}","events_url":"https://api.github.com/repos/FOSSEE/online_test/events","assignees_url":"https://api.github.com/repos/FOSSEE/online_test/assignees{/user}","branches_url":"https://api.github.com/repos/FOSSEE/online_test/branches{/branch}","tags_url":"https://api.github.com/repos/FOSSEE/online_test/tags","blobs_url":"https://api.github.com/repos/FOSSEE/online_test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FOSSEE/online_test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FOSSEE/online_test/git/refs{/sha}","trees_url":"https://api.github.com/repos/FOSSEE/online_test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FOSSEE/online_test/statuses/{sha}","languages_url":"https://api.github.com/repos/FOSSEE/online_test/languages","stargazers_url":"https://api.github.com/repos/FOSSEE/online_test/stargazers","contributors_url":"https://api.github.com/repos/FOSSEE/online_test/contributors","subscribers_url":"https://api.github.com/repos/FOSSEE/online_test/subscribers","subscription_url":"https://api.github.com/repos/FOSSEE/online_test/subscription","commits_url":"https://api.github.com/repos/FOSSEE/online_test/commits{/sha}","git_commits_url":"https://api.github.com/repos/FOSSEE/online_test/git/commits{/sha}","comments_url":"https://api.github.com/repos/FOSSEE/online_test/comments{/number}","issue_comment_url":"https://api.github.com/repos/FOSSEE/online_test/issues/comments{/number}","contents_url":"https://api.github.com/repos/FOSSEE/online_test/contents/{+path}","compare_url":"https://api.github.com/repos/FOSSEE/online_test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FOSSEE/online_test/merges","archive_url":"https://api.github.com/repos/FOSSEE/online_test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FOSSEE/online_test/downloads","issues_url":"https://api.github.com/repos/FOSSEE/online_test/issues{/number}","pulls_url":"https://api.github.com/repos/FOSSEE/online_test/pulls{/number}","milestones_url":"https://api.github.com/repos/FOSSEE/online_test/milestones{/number}","notifications_url":"https://api.github.com/repos/FOSSEE/online_test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FOSSEE/online_test/labels{/name}","releases_url":"https://api.github.com/repos/FOSSEE/online_test/releases{/id}","deployments_url":"https://api.github.com/repos/FOSSEE/online_test/deployments","created_at":"2011-11-08T14:02:17Z","updated_at":"2016-09-04T13:51:52Z","pushed_at":"2016-09-20T10:40:12Z","git_url":"git://github.com/FOSSEE/online_test.git","ssh_url":"git@github.com:FOSSEE/online_test.git","clone_url":"https://github.com/FOSSEE/online_test.git","svn_url":"https://github.com/FOSSEE/online_test","homepage":"http://fossee.in","size":5317,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":16,"forks":30,"open_issues":16,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/127"},"html":{"href":"https://github.com/FOSSEE/online_test/pull/127"},"issue":{"href":"https://api.github.com/repos/FOSSEE/online_test/issues/127"},"comments":{"href":"https://api.github.com/repos/FOSSEE/online_test/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/FOSSEE/online_test/statuses/a689afd85ef3f0e4ddb8255e06c50f400bebd165"}}}}
{"actor":{"display_login":"prabhuramachandran"}}