{"action":"created","comment":{"url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/comments/37136953","id":37136953,"diff_hunk":"@@ -0,0 +1,18 @@\n+# -*- coding: utf-8 -*-\n+from __future__ import unicode_literals\n+\n+from django.db import models\n+from django.contrib.auth.models import User\n+from shelf.models import BookItem\n+\n+from django.utils.timezone import now\n+\n+\n+class Rental(models.Model):\n+    who = models.ForeignKey(User)\n+    what = models.ForeignKey(BookItem)\n+    when = models.DateTimeField(default=now)","path":"rental/models.py","position":14,"original_position":14,"commit_id":"13af554f1d433243ab976748ff86f73607e59096","original_commit_id":"13af554f1d433243ab976748ff86f73607e59096","user":{"login":"add00","id":5357838,"avatar_url":"https://avatars.githubusercontent.com/u/5357838?v=3","gravatar_id":"","url":"https://api.github.com/users/add00","html_url":"https://github.com/add00","followers_url":"https://api.github.com/users/add00/followers","following_url":"https://api.github.com/users/add00/following{/other_user}","gists_url":"https://api.github.com/users/add00/gists{/gist_id}","starred_url":"https://api.github.com/users/add00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/add00/subscriptions","organizations_url":"https://api.github.com/users/add00/orgs","repos_url":"https://api.github.com/users/add00/repos","events_url":"https://api.github.com/users/add00/events{/privacy}","received_events_url":"https://api.github.com/users/add00/received_events","type":"User","site_admin":false},"body":"Tutaj możesz użyć `auto_now` lub `auto_now_add` w zależności od przeznaczenia. (https://docs.djangoproject.com/en/1.8/ref/models/fields/#django.db.models.DateField.auto_now).","created_at":"2015-08-15T16:07:23Z","updated_at":"2015-08-15T16:07:23Z","html_url":"https://github.com/KarolJagodzinski/kurs_django/pull/4#discussion_r37136953","pull_request_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/comments/37136953"},"html":{"href":"https://github.com/KarolJagodzinski/kurs_django/pull/4#discussion_r37136953"},"pull_request":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/4","id":42519928,"html_url":"https://github.com/KarolJagodzinski/kurs_django/pull/4","diff_url":"https://github.com/KarolJagodzinski/kurs_django/pull/4.diff","patch_url":"https://github.com/KarolJagodzinski/kurs_django/pull/4.patch","issue_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues/4","number":4,"state":"open","locked":false,"title":"Spotkanie05","user":{"login":"KarolJagodzinski","id":10132312,"avatar_url":"https://avatars.githubusercontent.com/u/10132312?v=3","gravatar_id":"","url":"https://api.github.com/users/KarolJagodzinski","html_url":"https://github.com/KarolJagodzinski","followers_url":"https://api.github.com/users/KarolJagodzinski/followers","following_url":"https://api.github.com/users/KarolJagodzinski/following{/other_user}","gists_url":"https://api.github.com/users/KarolJagodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/KarolJagodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarolJagodzinski/subscriptions","organizations_url":"https://api.github.com/users/KarolJagodzinski/orgs","repos_url":"https://api.github.com/users/KarolJagodzinski/repos","events_url":"https://api.github.com/users/KarolJagodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/KarolJagodzinski/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-15T14:20:33Z","updated_at":"2015-08-15T16:07:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6365632aad984c95278c879b07c1cae8440afa84","assignee":{"login":"add00","id":5357838,"avatar_url":"https://avatars.githubusercontent.com/u/5357838?v=3","gravatar_id":"","url":"https://api.github.com/users/add00","html_url":"https://github.com/add00","followers_url":"https://api.github.com/users/add00/followers","following_url":"https://api.github.com/users/add00/following{/other_user}","gists_url":"https://api.github.com/users/add00/gists{/gist_id}","starred_url":"https://api.github.com/users/add00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/add00/subscriptions","organizations_url":"https://api.github.com/users/add00/orgs","repos_url":"https://api.github.com/users/add00/repos","events_url":"https://api.github.com/users/add00/events{/privacy}","received_events_url":"https://api.github.com/users/add00/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/4/commits","review_comments_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/4/comments","review_comment_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues/4/comments","statuses_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/statuses/13af554f1d433243ab976748ff86f73607e59096","head":{"label":"KarolJagodzinski:Spotkanie05","ref":"Spotkanie05","sha":"13af554f1d433243ab976748ff86f73607e59096","user":{"login":"KarolJagodzinski","id":10132312,"avatar_url":"https://avatars.githubusercontent.com/u/10132312?v=3","gravatar_id":"","url":"https://api.github.com/users/KarolJagodzinski","html_url":"https://github.com/KarolJagodzinski","followers_url":"https://api.github.com/users/KarolJagodzinski/followers","following_url":"https://api.github.com/users/KarolJagodzinski/following{/other_user}","gists_url":"https://api.github.com/users/KarolJagodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/KarolJagodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarolJagodzinski/subscriptions","organizations_url":"https://api.github.com/users/KarolJagodzinski/orgs","repos_url":"https://api.github.com/users/KarolJagodzinski/repos","events_url":"https://api.github.com/users/KarolJagodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/KarolJagodzinski/received_events","type":"User","site_admin":false},"repo":{"id":40659347,"name":"kurs_django","full_name":"KarolJagodzinski/kurs_django","owner":{"login":"KarolJagodzinski","id":10132312,"avatar_url":"https://avatars.githubusercontent.com/u/10132312?v=3","gravatar_id":"","url":"https://api.github.com/users/KarolJagodzinski","html_url":"https://github.com/KarolJagodzinski","followers_url":"https://api.github.com/users/KarolJagodzinski/followers","following_url":"https://api.github.com/users/KarolJagodzinski/following{/other_user}","gists_url":"https://api.github.com/users/KarolJagodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/KarolJagodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarolJagodzinski/subscriptions","organizations_url":"https://api.github.com/users/KarolJagodzinski/orgs","repos_url":"https://api.github.com/users/KarolJagodzinski/repos","events_url":"https://api.github.com/users/KarolJagodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/KarolJagodzinski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KarolJagodzinski/kurs_django","description":"based on https://www.youtube.com/playlist?list=PLFH8bHppdSGu5uWf46rwhHN2aqOc5nfZi","fork":false,"url":"https://api.github.com/repos/KarolJagodzinski/kurs_django","forks_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/forks","keys_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/teams","hooks_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/hooks","issue_events_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues/events{/number}","events_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/events","assignees_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/assignees{/user}","branches_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/branches{/branch}","tags_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/tags","blobs_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/refs{/sha}","trees_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/statuses/{sha}","languages_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/languages","stargazers_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/stargazers","contributors_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/contributors","subscribers_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/subscribers","subscription_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/subscription","commits_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/commits{/sha}","git_commits_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/commits{/sha}","comments_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/comments{/number}","issue_comment_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues/comments{/number}","contents_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/contents/{+path}","compare_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/merges","archive_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/downloads","issues_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues{/number}","pulls_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls{/number}","milestones_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/milestones{/number}","notifications_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/labels{/name}","releases_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/releases{/id}","created_at":"2015-08-13T13:08:59Z","updated_at":"2015-08-13T13:10:00Z","pushed_at":"2015-08-15T15:23:33Z","git_url":"git://github.com/KarolJagodzinski/kurs_django.git","ssh_url":"git@github.com:KarolJagodzinski/kurs_django.git","clone_url":"https://github.com/KarolJagodzinski/kurs_django.git","svn_url":"https://github.com/KarolJagodzinski/kurs_django","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"KarolJagodzinski:dev","ref":"dev","sha":"56c495af79c9f0b7088002682a8f8048a24eb63c","user":{"login":"KarolJagodzinski","id":10132312,"avatar_url":"https://avatars.githubusercontent.com/u/10132312?v=3","gravatar_id":"","url":"https://api.github.com/users/KarolJagodzinski","html_url":"https://github.com/KarolJagodzinski","followers_url":"https://api.github.com/users/KarolJagodzinski/followers","following_url":"https://api.github.com/users/KarolJagodzinski/following{/other_user}","gists_url":"https://api.github.com/users/KarolJagodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/KarolJagodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarolJagodzinski/subscriptions","organizations_url":"https://api.github.com/users/KarolJagodzinski/orgs","repos_url":"https://api.github.com/users/KarolJagodzinski/repos","events_url":"https://api.github.com/users/KarolJagodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/KarolJagodzinski/received_events","type":"User","site_admin":false},"repo":{"id":40659347,"name":"kurs_django","full_name":"KarolJagodzinski/kurs_django","owner":{"login":"KarolJagodzinski","id":10132312,"avatar_url":"https://avatars.githubusercontent.com/u/10132312?v=3","gravatar_id":"","url":"https://api.github.com/users/KarolJagodzinski","html_url":"https://github.com/KarolJagodzinski","followers_url":"https://api.github.com/users/KarolJagodzinski/followers","following_url":"https://api.github.com/users/KarolJagodzinski/following{/other_user}","gists_url":"https://api.github.com/users/KarolJagodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/KarolJagodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarolJagodzinski/subscriptions","organizations_url":"https://api.github.com/users/KarolJagodzinski/orgs","repos_url":"https://api.github.com/users/KarolJagodzinski/repos","events_url":"https://api.github.com/users/KarolJagodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/KarolJagodzinski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KarolJagodzinski/kurs_django","description":"based on https://www.youtube.com/playlist?list=PLFH8bHppdSGu5uWf46rwhHN2aqOc5nfZi","fork":false,"url":"https://api.github.com/repos/KarolJagodzinski/kurs_django","forks_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/forks","keys_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/teams","hooks_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/hooks","issue_events_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues/events{/number}","events_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/events","assignees_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/assignees{/user}","branches_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/branches{/branch}","tags_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/tags","blobs_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/refs{/sha}","trees_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/statuses/{sha}","languages_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/languages","stargazers_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/stargazers","contributors_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/contributors","subscribers_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/subscribers","subscription_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/subscription","commits_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/commits{/sha}","git_commits_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/git/commits{/sha}","comments_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/comments{/number}","issue_comment_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues/comments{/number}","contents_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/contents/{+path}","compare_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/merges","archive_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/downloads","issues_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues{/number}","pulls_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls{/number}","milestones_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/milestones{/number}","notifications_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/labels{/name}","releases_url":"https://api.github.com/repos/KarolJagodzinski/kurs_django/releases{/id}","created_at":"2015-08-13T13:08:59Z","updated_at":"2015-08-13T13:10:00Z","pushed_at":"2015-08-15T15:23:33Z","git_url":"git://github.com/KarolJagodzinski/kurs_django.git","ssh_url":"git@github.com:KarolJagodzinski/kurs_django.git","clone_url":"https://github.com/KarolJagodzinski/kurs_django.git","svn_url":"https://github.com/KarolJagodzinski/kurs_django","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/4"},"html":{"href":"https://github.com/KarolJagodzinski/kurs_django/pull/4"},"issue":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues/4"},"comments":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/KarolJagodzinski/kurs_django/statuses/13af554f1d433243ab976748ff86f73607e59096"}}}}