{"action":"created","comment":{"url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/comments/167175010","pull_request_review_id":95356108,"id":167175010,"diff_hunk":"@@ -1,3 +1,23 @@\n \"\"\"Models for project.\"\"\"\n \n-from django.db import models  # noqa: F401\n+from django.db import models\n+from django.utils import timezone\n+\n+\n+class Post(models.Model):\n+    \"\"\"Model that represents post in our blog.\"\"\"\n+\n+    author = models.ForeignKey('auth.User', on_delete=models.CASCADE)\n+    title = models.CharField(max_length=200)\n+    text = models.TextField()\n+    created_date = models.DateTimeField(default=timezone.now)\n+    published_date = models.DateTimeField(blank=True, null=True)\n+\n+    def publish(self):\n+        \"\"\"Publish the post.\"\"\"\n+        self.published_date = timezone.now()\n+        self.save()\n+\n+    def __str__(self):\n+        \"\"\"Return title of Post.\"\"\"","path":"blog/models.py","position":null,"original_position":23,"commit_id":"d7e136c2fac4661d6603d7d24a65ea68f0ace972","original_commit_id":"997ed728ec5cd2c572d98ed8b05bcccf4f7bd314","user":{"login":"PetrushynskyiOleksii","id":32573872,"avatar_url":"https://avatars0.githubusercontent.com/u/32573872?v=4","gravatar_id":"","url":"https://api.github.com/users/PetrushynskyiOleksii","html_url":"https://github.com/PetrushynskyiOleksii","followers_url":"https://api.github.com/users/PetrushynskyiOleksii/followers","following_url":"https://api.github.com/users/PetrushynskyiOleksii/following{/other_user}","gists_url":"https://api.github.com/users/PetrushynskyiOleksii/gists{/gist_id}","starred_url":"https://api.github.com/users/PetrushynskyiOleksii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PetrushynskyiOleksii/subscriptions","organizations_url":"https://api.github.com/users/PetrushynskyiOleksii/orgs","repos_url":"https://api.github.com/users/PetrushynskyiOleksii/repos","events_url":"https://api.github.com/users/PetrushynskyiOleksii/events{/privacy}","received_events_url":"https://api.github.com/users/PetrushynskyiOleksii/received_events","type":"User","site_admin":false},"body":"@webknjaz done :)","created_at":"2018-02-09T09:19:32Z","updated_at":"2018-02-09T09:19:32Z","html_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pull/13#discussion_r167175010","pull_request_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/13","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/comments/167175010"},"html":{"href":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pull/13#discussion_r167175010"},"pull_request":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/13"}},"in_reply_to_id":166913073},"pull_request":{"url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/13","id":167722936,"html_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pull/13","diff_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pull/13.diff","patch_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pull/13.patch","issue_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues/13","number":13,"state":"open","locked":false,"title":"Add post model","user":{"login":"PetrushynskyiOleksii","id":32573872,"avatar_url":"https://avatars0.githubusercontent.com/u/32573872?v=4","gravatar_id":"","url":"https://api.github.com/users/PetrushynskyiOleksii","html_url":"https://github.com/PetrushynskyiOleksii","followers_url":"https://api.github.com/users/PetrushynskyiOleksii/followers","following_url":"https://api.github.com/users/PetrushynskyiOleksii/following{/other_user}","gists_url":"https://api.github.com/users/PetrushynskyiOleksii/gists{/gist_id}","starred_url":"https://api.github.com/users/PetrushynskyiOleksii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PetrushynskyiOleksii/subscriptions","organizations_url":"https://api.github.com/users/PetrushynskyiOleksii/orgs","repos_url":"https://api.github.com/users/PetrushynskyiOleksii/repos","events_url":"https://api.github.com/users/PetrushynskyiOleksii/events{/privacy}","received_events_url":"https://api.github.com/users/PetrushynskyiOleksii/received_events","type":"User","site_admin":false},"body":"Ref #11 ","created_at":"2018-02-07T15:24:04Z","updated_at":"2018-02-09T09:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"514e6e54d3c8532871699d73d29979ecc1a33acb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/13/commits","review_comments_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/13/comments","review_comment_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues/13/comments","statuses_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/statuses/d7e136c2fac4661d6603d7d24a65ea68f0ace972","head":{"label":"kpi-web-guild:feature/models","ref":"feature/models","sha":"d7e136c2fac4661d6603d7d24a65ea68f0ace972","user":{"login":"kpi-web-guild","id":23158073,"avatar_url":"https://avatars2.githubusercontent.com/u/23158073?v=4","gravatar_id":"","url":"https://api.github.com/users/kpi-web-guild","html_url":"https://github.com/kpi-web-guild","followers_url":"https://api.github.com/users/kpi-web-guild/followers","following_url":"https://api.github.com/users/kpi-web-guild/following{/other_user}","gists_url":"https://api.github.com/users/kpi-web-guild/gists{/gist_id}","starred_url":"https://api.github.com/users/kpi-web-guild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpi-web-guild/subscriptions","organizations_url":"https://api.github.com/users/kpi-web-guild/orgs","repos_url":"https://api.github.com/users/kpi-web-guild/repos","events_url":"https://api.github.com/users/kpi-web-guild/events{/privacy}","received_events_url":"https://api.github.com/users/kpi-web-guild/received_events","type":"Organization","site_admin":false},"repo":{"id":119255237,"name":"django-girls-blog-PetrushynskyiOleksii","full_name":"kpi-web-guild/django-girls-blog-PetrushynskyiOleksii","owner":{"login":"kpi-web-guild","id":23158073,"avatar_url":"https://avatars2.githubusercontent.com/u/23158073?v=4","gravatar_id":"","url":"https://api.github.com/users/kpi-web-guild","html_url":"https://github.com/kpi-web-guild","followers_url":"https://api.github.com/users/kpi-web-guild/followers","following_url":"https://api.github.com/users/kpi-web-guild/following{/other_user}","gists_url":"https://api.github.com/users/kpi-web-guild/gists{/gist_id}","starred_url":"https://api.github.com/users/kpi-web-guild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpi-web-guild/subscriptions","organizations_url":"https://api.github.com/users/kpi-web-guild/orgs","repos_url":"https://api.github.com/users/kpi-web-guild/repos","events_url":"https://api.github.com/users/kpi-web-guild/events{/privacy}","received_events_url":"https://api.github.com/users/kpi-web-guild/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii","description":"django-girls-blog-PetrushynskyiOleksii created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii","forks_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/forks","keys_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/teams","hooks_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/hooks","issue_events_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues/events{/number}","events_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/events","assignees_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/assignees{/user}","branches_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/branches{/branch}","tags_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/tags","blobs_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/refs{/sha}","trees_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/statuses/{sha}","languages_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/languages","stargazers_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/stargazers","contributors_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/contributors","subscribers_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/subscribers","subscription_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/subscription","commits_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/commits{/sha}","git_commits_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/commits{/sha}","comments_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/comments{/number}","issue_comment_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues/comments{/number}","contents_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/contents/{+path}","compare_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/merges","archive_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/downloads","issues_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues{/number}","pulls_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls{/number}","milestones_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/milestones{/number}","notifications_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/labels{/name}","releases_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/releases{/id}","deployments_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/deployments","created_at":"2018-01-28T12:14:03Z","updated_at":"2018-02-07T14:50:26Z","pushed_at":"2018-02-09T09:18:50Z","git_url":"git://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii.git","ssh_url":"git@github.com:kpi-web-guild/django-girls-blog-PetrushynskyiOleksii.git","clone_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii.git","svn_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"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":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"kpi-web-guild:master","ref":"master","sha":"bee0d85863203e9b7169ddc35d794b2bcef8938d","user":{"login":"kpi-web-guild","id":23158073,"avatar_url":"https://avatars2.githubusercontent.com/u/23158073?v=4","gravatar_id":"","url":"https://api.github.com/users/kpi-web-guild","html_url":"https://github.com/kpi-web-guild","followers_url":"https://api.github.com/users/kpi-web-guild/followers","following_url":"https://api.github.com/users/kpi-web-guild/following{/other_user}","gists_url":"https://api.github.com/users/kpi-web-guild/gists{/gist_id}","starred_url":"https://api.github.com/users/kpi-web-guild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpi-web-guild/subscriptions","organizations_url":"https://api.github.com/users/kpi-web-guild/orgs","repos_url":"https://api.github.com/users/kpi-web-guild/repos","events_url":"https://api.github.com/users/kpi-web-guild/events{/privacy}","received_events_url":"https://api.github.com/users/kpi-web-guild/received_events","type":"Organization","site_admin":false},"repo":{"id":119255237,"name":"django-girls-blog-PetrushynskyiOleksii","full_name":"kpi-web-guild/django-girls-blog-PetrushynskyiOleksii","owner":{"login":"kpi-web-guild","id":23158073,"avatar_url":"https://avatars2.githubusercontent.com/u/23158073?v=4","gravatar_id":"","url":"https://api.github.com/users/kpi-web-guild","html_url":"https://github.com/kpi-web-guild","followers_url":"https://api.github.com/users/kpi-web-guild/followers","following_url":"https://api.github.com/users/kpi-web-guild/following{/other_user}","gists_url":"https://api.github.com/users/kpi-web-guild/gists{/gist_id}","starred_url":"https://api.github.com/users/kpi-web-guild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpi-web-guild/subscriptions","organizations_url":"https://api.github.com/users/kpi-web-guild/orgs","repos_url":"https://api.github.com/users/kpi-web-guild/repos","events_url":"https://api.github.com/users/kpi-web-guild/events{/privacy}","received_events_url":"https://api.github.com/users/kpi-web-guild/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii","description":"django-girls-blog-PetrushynskyiOleksii created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii","forks_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/forks","keys_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/teams","hooks_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/hooks","issue_events_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues/events{/number}","events_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/events","assignees_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/assignees{/user}","branches_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/branches{/branch}","tags_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/tags","blobs_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/refs{/sha}","trees_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/statuses/{sha}","languages_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/languages","stargazers_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/stargazers","contributors_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/contributors","subscribers_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/subscribers","subscription_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/subscription","commits_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/commits{/sha}","git_commits_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/git/commits{/sha}","comments_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/comments{/number}","issue_comment_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues/comments{/number}","contents_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/contents/{+path}","compare_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/merges","archive_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/downloads","issues_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues{/number}","pulls_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls{/number}","milestones_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/milestones{/number}","notifications_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/labels{/name}","releases_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/releases{/id}","deployments_url":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/deployments","created_at":"2018-01-28T12:14:03Z","updated_at":"2018-02-07T14:50:26Z","pushed_at":"2018-02-09T09:18:50Z","git_url":"git://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii.git","ssh_url":"git@github.com:kpi-web-guild/django-girls-blog-PetrushynskyiOleksii.git","clone_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii.git","svn_url":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"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":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/13"},"html":{"href":"https://github.com/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pull/13"},"issue":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues/13"},"comments":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/kpi-web-guild/django-girls-blog-PetrushynskyiOleksii/statuses/d7e136c2fac4661d6603d7d24a65ea68f0ace972"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"PetrushynskyiOleksii"}}