{"action":"created","comment":{"url":"https://api.github.com/repos/lv275python/eventually.api/pulls/comments/149504344","pull_request_review_id":74908847,"id":149504344,"diff_hunk":"@@ -2,29 +2,49 @@\n Model for describe Comment entity\n \"\"\"\n \n-from django.db import models\n-from django.db import IntegrityError\n-\n+from django.db import models, IntegrityError\n+from authentication.models import CustomUser\n+from event.models import Event\n+from team.models import Team\n+from vote.models import Vote\n \n class Comment(models.Model):\n     \"\"\"\n-        Comment model that describes comment entity.\n+    Comment model that describes comment entity.\n+\n+    The main idea is to document\n+    the class with\n+\n+    :param text: text of comment\n+    :type text: string with max_length = 1024 symbols\n+\n+    :param created_at: date of comment's create\n+    :type  reated_at: datetime\n+\n+    :param updated_at: date of comment's update\n+    :type updated_at: datetime\n+\n+    :param team: ForeignKey on the certain Team Model\n+    :type team: integer\n \n-        The main idea is to document\n-        the class with\n+    :param event: ForeignKey on the certain Event Model\n+    :type team: integer\n \n-        :param text: text of comment\n-        :type text: string with max_length = 1024 symbols\n-        :param created_at: date of comment's create\n-        :type  reated_at: datetime\n-        :param updated_at: date of comment's update\n-        :type updated_at: datetime\n+    :param vote: ForeignKey on the certain Vote Model\n+    :type team: integer\n+\n+    :param author: ForeignKey on the certain CustomUser Model\n+    :type team: integer\n \n     \"\"\"\n \n     text = models.CharField(max_length=1024)\n     created_at = models.DateTimeField(auto_now_add=True, editable=False)\n     updated_at = models.DateTimeField(auto_now=True)\n+    team = models.ForeignKey(Team, on_delete=models.CASCADE)\n+    event = models.ForeignKey(Event, on_delete=models.CASCADE)\n+    vote = models.ForeignKey(Vote, null=True, on_delete=models.CASCADE)\n+    author = models.ForeignKey(CustomUser, on_delete=models.CASCADE)","path":"eventually/comment/models.py","position":null,"original_position":58,"commit_id":"79b859a288ce4eda4fcd9689846b2e94c6928f85","original_commit_id":"549d5fe607ff5636be555ca93f2b34041f2dc26b","user":{"login":"noobhunters","id":29796097,"avatar_url":"https://avatars3.githubusercontent.com/u/29796097?v=4","gravatar_id":"","url":"https://api.github.com/users/noobhunters","html_url":"https://github.com/noobhunters","followers_url":"https://api.github.com/users/noobhunters/followers","following_url":"https://api.github.com/users/noobhunters/following{/other_user}","gists_url":"https://api.github.com/users/noobhunters/gists{/gist_id}","starred_url":"https://api.github.com/users/noobhunters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noobhunters/subscriptions","organizations_url":"https://api.github.com/users/noobhunters/orgs","repos_url":"https://api.github.com/users/noobhunters/repos","events_url":"https://api.github.com/users/noobhunters/events{/privacy}","received_events_url":"https://api.github.com/users/noobhunters/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-11-07T21:10:44Z","updated_at":"2017-11-07T21:10:44Z","html_url":"https://github.com/lv275python/eventually.api/pull/18#discussion_r149504344","pull_request_url":"https://api.github.com/repos/lv275python/eventually.api/pulls/18","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/lv275python/eventually.api/pulls/comments/149504344"},"html":{"href":"https://github.com/lv275python/eventually.api/pull/18#discussion_r149504344"},"pull_request":{"href":"https://api.github.com/repos/lv275python/eventually.api/pulls/18"}},"in_reply_to_id":149433446},"pull_request":{"url":"https://api.github.com/repos/lv275python/eventually.api/pulls/18","id":150304634,"html_url":"https://github.com/lv275python/eventually.api/pull/18","diff_url":"https://github.com/lv275python/eventually.api/pull/18.diff","patch_url":"https://github.com/lv275python/eventually.api/pull/18.patch","issue_url":"https://api.github.com/repos/lv275python/eventually.api/issues/18","number":18,"state":"open","locked":false,"title":"added relations to comment.models.py","user":{"login":"noobhunters","id":29796097,"avatar_url":"https://avatars3.githubusercontent.com/u/29796097?v=4","gravatar_id":"","url":"https://api.github.com/users/noobhunters","html_url":"https://github.com/noobhunters","followers_url":"https://api.github.com/users/noobhunters/followers","following_url":"https://api.github.com/users/noobhunters/following{/other_user}","gists_url":"https://api.github.com/users/noobhunters/gists{/gist_id}","starred_url":"https://api.github.com/users/noobhunters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noobhunters/subscriptions","organizations_url":"https://api.github.com/users/noobhunters/orgs","repos_url":"https://api.github.com/users/noobhunters/repos","events_url":"https://api.github.com/users/noobhunters/events{/privacy}","received_events_url":"https://api.github.com/users/noobhunters/received_events","type":"User","site_admin":false},"body":"Added Team relation\r\nAdded Event relation\r\nAdded Vote relation\r\nAdded CustomUser relation\r\n\r\n## Code reviewers\r\n\r\n- [ ] @dmytrorevak\r\n- [ ] @IvanAndrukh\r\n- [ ] @JjuliaP\r\n- [ ] @makarman\r\n- [ ] @noobhunters\r\n- [ ] @Silent777\r\n- [ ] @Staryj812\r\n\r\n### Second Level Review\r\n\r\n- [ ] @ssOleg\r\n- [ ] @lhalam\r\n\r\n## CHECK LIST\r\n- [ ]  СI passed\r\n- [ ]  Сode coverage >=95%\r\n- [ ]  PR is reviewed manually again (to make sure you have 100% ready code)\r\n- [ ]  All reviewers agreed to merge the PR\r\n- [ ]  I've checked new feature as logged in and logged out user if needed\r\n- [ ]  PR meets all conventions\r\n","created_at":"2017-11-02T14:23:47Z","updated_at":"2017-11-07T21:10:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b31387d20a702f59605da3a9a41b3f92fd8600a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/lv275python/eventually.api/pulls/18/commits","review_comments_url":"https://api.github.com/repos/lv275python/eventually.api/pulls/18/comments","review_comment_url":"https://api.github.com/repos/lv275python/eventually.api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lv275python/eventually.api/issues/18/comments","statuses_url":"https://api.github.com/repos/lv275python/eventually.api/statuses/79b859a288ce4eda4fcd9689846b2e94c6928f85","head":{"label":"lv275python:feature/comment-app","ref":"feature/comment-app","sha":"79b859a288ce4eda4fcd9689846b2e94c6928f85","user":{"login":"lv275python","id":33029203,"avatar_url":"https://avatars1.githubusercontent.com/u/33029203?v=4","gravatar_id":"","url":"https://api.github.com/users/lv275python","html_url":"https://github.com/lv275python","followers_url":"https://api.github.com/users/lv275python/followers","following_url":"https://api.github.com/users/lv275python/following{/other_user}","gists_url":"https://api.github.com/users/lv275python/gists{/gist_id}","starred_url":"https://api.github.com/users/lv275python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lv275python/subscriptions","organizations_url":"https://api.github.com/users/lv275python/orgs","repos_url":"https://api.github.com/users/lv275python/repos","events_url":"https://api.github.com/users/lv275python/events{/privacy}","received_events_url":"https://api.github.com/users/lv275python/received_events","type":"Organization","site_admin":false},"repo":{"id":107986376,"name":"eventually.api","full_name":"lv275python/eventually.api","owner":{"login":"lv275python","id":33029203,"avatar_url":"https://avatars1.githubusercontent.com/u/33029203?v=4","gravatar_id":"","url":"https://api.github.com/users/lv275python","html_url":"https://github.com/lv275python","followers_url":"https://api.github.com/users/lv275python/followers","following_url":"https://api.github.com/users/lv275python/following{/other_user}","gists_url":"https://api.github.com/users/lv275python/gists{/gist_id}","starred_url":"https://api.github.com/users/lv275python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lv275python/subscriptions","organizations_url":"https://api.github.com/users/lv275python/orgs","repos_url":"https://api.github.com/users/lv275python/repos","events_url":"https://api.github.com/users/lv275python/events{/privacy}","received_events_url":"https://api.github.com/users/lv275python/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lv275python/eventually.api","description":null,"fork":false,"url":"https://api.github.com/repos/lv275python/eventually.api","forks_url":"https://api.github.com/repos/lv275python/eventually.api/forks","keys_url":"https://api.github.com/repos/lv275python/eventually.api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lv275python/eventually.api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lv275python/eventually.api/teams","hooks_url":"https://api.github.com/repos/lv275python/eventually.api/hooks","issue_events_url":"https://api.github.com/repos/lv275python/eventually.api/issues/events{/number}","events_url":"https://api.github.com/repos/lv275python/eventually.api/events","assignees_url":"https://api.github.com/repos/lv275python/eventually.api/assignees{/user}","branches_url":"https://api.github.com/repos/lv275python/eventually.api/branches{/branch}","tags_url":"https://api.github.com/repos/lv275python/eventually.api/tags","blobs_url":"https://api.github.com/repos/lv275python/eventually.api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lv275python/eventually.api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lv275python/eventually.api/git/refs{/sha}","trees_url":"https://api.github.com/repos/lv275python/eventually.api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lv275python/eventually.api/statuses/{sha}","languages_url":"https://api.github.com/repos/lv275python/eventually.api/languages","stargazers_url":"https://api.github.com/repos/lv275python/eventually.api/stargazers","contributors_url":"https://api.github.com/repos/lv275python/eventually.api/contributors","subscribers_url":"https://api.github.com/repos/lv275python/eventually.api/subscribers","subscription_url":"https://api.github.com/repos/lv275python/eventually.api/subscription","commits_url":"https://api.github.com/repos/lv275python/eventually.api/commits{/sha}","git_commits_url":"https://api.github.com/repos/lv275python/eventually.api/git/commits{/sha}","comments_url":"https://api.github.com/repos/lv275python/eventually.api/comments{/number}","issue_comment_url":"https://api.github.com/repos/lv275python/eventually.api/issues/comments{/number}","contents_url":"https://api.github.com/repos/lv275python/eventually.api/contents/{+path}","compare_url":"https://api.github.com/repos/lv275python/eventually.api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lv275python/eventually.api/merges","archive_url":"https://api.github.com/repos/lv275python/eventually.api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lv275python/eventually.api/downloads","issues_url":"https://api.github.com/repos/lv275python/eventually.api/issues{/number}","pulls_url":"https://api.github.com/repos/lv275python/eventually.api/pulls{/number}","milestones_url":"https://api.github.com/repos/lv275python/eventually.api/milestones{/number}","notifications_url":"https://api.github.com/repos/lv275python/eventually.api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lv275python/eventually.api/labels{/name}","releases_url":"https://api.github.com/repos/lv275python/eventually.api/releases{/id}","deployments_url":"https://api.github.com/repos/lv275python/eventually.api/deployments","created_at":"2017-10-23T13:31:00Z","updated_at":"2017-10-23T19:39:46Z","pushed_at":"2017-11-07T20:54:02Z","git_url":"git://github.com/lv275python/eventually.api.git","ssh_url":"git@github.com:lv275python/eventually.api.git","clone_url":"https://github.com/lv275python/eventually.api.git","svn_url":"https://github.com/lv275python/eventually.api","homepage":null,"size":56,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"dev"}},"base":{"label":"lv275python:dev","ref":"dev","sha":"8f0570b315a7bd9a2820f4e81eee8d454b1ff39d","user":{"login":"lv275python","id":33029203,"avatar_url":"https://avatars1.githubusercontent.com/u/33029203?v=4","gravatar_id":"","url":"https://api.github.com/users/lv275python","html_url":"https://github.com/lv275python","followers_url":"https://api.github.com/users/lv275python/followers","following_url":"https://api.github.com/users/lv275python/following{/other_user}","gists_url":"https://api.github.com/users/lv275python/gists{/gist_id}","starred_url":"https://api.github.com/users/lv275python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lv275python/subscriptions","organizations_url":"https://api.github.com/users/lv275python/orgs","repos_url":"https://api.github.com/users/lv275python/repos","events_url":"https://api.github.com/users/lv275python/events{/privacy}","received_events_url":"https://api.github.com/users/lv275python/received_events","type":"Organization","site_admin":false},"repo":{"id":107986376,"name":"eventually.api","full_name":"lv275python/eventually.api","owner":{"login":"lv275python","id":33029203,"avatar_url":"https://avatars1.githubusercontent.com/u/33029203?v=4","gravatar_id":"","url":"https://api.github.com/users/lv275python","html_url":"https://github.com/lv275python","followers_url":"https://api.github.com/users/lv275python/followers","following_url":"https://api.github.com/users/lv275python/following{/other_user}","gists_url":"https://api.github.com/users/lv275python/gists{/gist_id}","starred_url":"https://api.github.com/users/lv275python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lv275python/subscriptions","organizations_url":"https://api.github.com/users/lv275python/orgs","repos_url":"https://api.github.com/users/lv275python/repos","events_url":"https://api.github.com/users/lv275python/events{/privacy}","received_events_url":"https://api.github.com/users/lv275python/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lv275python/eventually.api","description":null,"fork":false,"url":"https://api.github.com/repos/lv275python/eventually.api","forks_url":"https://api.github.com/repos/lv275python/eventually.api/forks","keys_url":"https://api.github.com/repos/lv275python/eventually.api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lv275python/eventually.api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lv275python/eventually.api/teams","hooks_url":"https://api.github.com/repos/lv275python/eventually.api/hooks","issue_events_url":"https://api.github.com/repos/lv275python/eventually.api/issues/events{/number}","events_url":"https://api.github.com/repos/lv275python/eventually.api/events","assignees_url":"https://api.github.com/repos/lv275python/eventually.api/assignees{/user}","branches_url":"https://api.github.com/repos/lv275python/eventually.api/branches{/branch}","tags_url":"https://api.github.com/repos/lv275python/eventually.api/tags","blobs_url":"https://api.github.com/repos/lv275python/eventually.api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lv275python/eventually.api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lv275python/eventually.api/git/refs{/sha}","trees_url":"https://api.github.com/repos/lv275python/eventually.api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lv275python/eventually.api/statuses/{sha}","languages_url":"https://api.github.com/repos/lv275python/eventually.api/languages","stargazers_url":"https://api.github.com/repos/lv275python/eventually.api/stargazers","contributors_url":"https://api.github.com/repos/lv275python/eventually.api/contributors","subscribers_url":"https://api.github.com/repos/lv275python/eventually.api/subscribers","subscription_url":"https://api.github.com/repos/lv275python/eventually.api/subscription","commits_url":"https://api.github.com/repos/lv275python/eventually.api/commits{/sha}","git_commits_url":"https://api.github.com/repos/lv275python/eventually.api/git/commits{/sha}","comments_url":"https://api.github.com/repos/lv275python/eventually.api/comments{/number}","issue_comment_url":"https://api.github.com/repos/lv275python/eventually.api/issues/comments{/number}","contents_url":"https://api.github.com/repos/lv275python/eventually.api/contents/{+path}","compare_url":"https://api.github.com/repos/lv275python/eventually.api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lv275python/eventually.api/merges","archive_url":"https://api.github.com/repos/lv275python/eventually.api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lv275python/eventually.api/downloads","issues_url":"https://api.github.com/repos/lv275python/eventually.api/issues{/number}","pulls_url":"https://api.github.com/repos/lv275python/eventually.api/pulls{/number}","milestones_url":"https://api.github.com/repos/lv275python/eventually.api/milestones{/number}","notifications_url":"https://api.github.com/repos/lv275python/eventually.api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lv275python/eventually.api/labels{/name}","releases_url":"https://api.github.com/repos/lv275python/eventually.api/releases{/id}","deployments_url":"https://api.github.com/repos/lv275python/eventually.api/deployments","created_at":"2017-10-23T13:31:00Z","updated_at":"2017-10-23T19:39:46Z","pushed_at":"2017-11-07T20:54:02Z","git_url":"git://github.com/lv275python/eventually.api.git","ssh_url":"git@github.com:lv275python/eventually.api.git","clone_url":"https://github.com/lv275python/eventually.api.git","svn_url":"https://github.com/lv275python/eventually.api","homepage":null,"size":56,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/lv275python/eventually.api/pulls/18"},"html":{"href":"https://github.com/lv275python/eventually.api/pull/18"},"issue":{"href":"https://api.github.com/repos/lv275python/eventually.api/issues/18"},"comments":{"href":"https://api.github.com/repos/lv275python/eventually.api/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/lv275python/eventually.api/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/lv275python/eventually.api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lv275python/eventually.api/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/lv275python/eventually.api/statuses/79b859a288ce4eda4fcd9689846b2e94c6928f85"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"noobhunters"}}