{"action":"created","comment":{"url":"https://api.github.com/repos/bbungsang/used-book-store/pulls/comments/131529579","pull_request_review_id":54522639,"id":131529579,"diff_hunk":"@@ -0,0 +1,52 @@\n+from django.conf import settings\n+from django.contrib.auth import get_user_model\n+from django.core.mail import send_mail\n+from django.http import HttpResponse\n+from django.shortcuts import render, get_object_or_404\n+\n+from book_store.forms.transaction import SellBookForm\n+from book_store.models import Book, Transaction\n+\n+User = get_user_model()\n+\n+\n+def check_buy_book(isbn):\n+    book_info = Book.objects.get(isbn=isbn)\n+    buyers = Transaction.objects.filter(buyer__isnull=False)","path":"django_app/book_store/views/transaction.py","position":15,"original_position":15,"commit_id":"28a6c98d7e9722fdb7b5babd3ff212b243595636","original_commit_id":"28a6c98d7e9722fdb7b5babd3ff212b243595636","user":{"login":"MunsuPark","id":16676641,"avatar_url":"https://avatars1.githubusercontent.com/u/16676641?v=4","gravatar_id":"","url":"https://api.github.com/users/MunsuPark","html_url":"https://github.com/MunsuPark","followers_url":"https://api.github.com/users/MunsuPark/followers","following_url":"https://api.github.com/users/MunsuPark/following{/other_user}","gists_url":"https://api.github.com/users/MunsuPark/gists{/gist_id}","starred_url":"https://api.github.com/users/MunsuPark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MunsuPark/subscriptions","organizations_url":"https://api.github.com/users/MunsuPark/orgs","repos_url":"https://api.github.com/users/MunsuPark/repos","events_url":"https://api.github.com/users/MunsuPark/events{/privacy}","received_events_url":"https://api.github.com/users/MunsuPark/received_events","type":"User","site_admin":false},"body":"sell_transactions 일듯합니다.","created_at":"2017-08-05T21:09:19Z","updated_at":"2017-08-05T21:09:19Z","html_url":"https://github.com/bbungsang/used-book-store/pull/15#discussion_r131529579","pull_request_url":"https://api.github.com/repos/bbungsang/used-book-store/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/bbungsang/used-book-store/pulls/comments/131529579"},"html":{"href":"https://github.com/bbungsang/used-book-store/pull/15#discussion_r131529579"},"pull_request":{"href":"https://api.github.com/repos/bbungsang/used-book-store/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/bbungsang/used-book-store/pulls/15","id":134305291,"html_url":"https://github.com/bbungsang/used-book-store/pull/15","diff_url":"https://github.com/bbungsang/used-book-store/pull/15.diff","patch_url":"https://github.com/bbungsang/used-book-store/pull/15.patch","issue_url":"https://api.github.com/repos/bbungsang/used-book-store/issues/15","number":15,"state":"open","locked":false,"title":"이메일 알람 기능 추가","user":{"login":"bbungsang","id":22735678,"avatar_url":"https://avatars1.githubusercontent.com/u/22735678?v=4","gravatar_id":"","url":"https://api.github.com/users/bbungsang","html_url":"https://github.com/bbungsang","followers_url":"https://api.github.com/users/bbungsang/followers","following_url":"https://api.github.com/users/bbungsang/following{/other_user}","gists_url":"https://api.github.com/users/bbungsang/gists{/gist_id}","starred_url":"https://api.github.com/users/bbungsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbungsang/subscriptions","organizations_url":"https://api.github.com/users/bbungsang/orgs","repos_url":"https://api.github.com/users/bbungsang/repos","events_url":"https://api.github.com/users/bbungsang/events{/privacy}","received_events_url":"https://api.github.com/users/bbungsang/received_events","type":"User","site_admin":false},"body":"댓글 달면 포스트 작성자에게 이메일 알람 기능,\r\n판매자가 책을 등록하고, 해당 책 구매자가 존재하면 이메일 알람 기능","created_at":"2017-08-05T21:08:05Z","updated_at":"2017-08-05T21:09:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac65f6c3da5062b274ac85ebba05bd705b2077dc","assignee":{"login":"MunsuPark","id":16676641,"avatar_url":"https://avatars1.githubusercontent.com/u/16676641?v=4","gravatar_id":"","url":"https://api.github.com/users/MunsuPark","html_url":"https://github.com/MunsuPark","followers_url":"https://api.github.com/users/MunsuPark/followers","following_url":"https://api.github.com/users/MunsuPark/following{/other_user}","gists_url":"https://api.github.com/users/MunsuPark/gists{/gist_id}","starred_url":"https://api.github.com/users/MunsuPark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MunsuPark/subscriptions","organizations_url":"https://api.github.com/users/MunsuPark/orgs","repos_url":"https://api.github.com/users/MunsuPark/repos","events_url":"https://api.github.com/users/MunsuPark/events{/privacy}","received_events_url":"https://api.github.com/users/MunsuPark/received_events","type":"User","site_admin":false},"assignees":[{"login":"MunsuPark","id":16676641,"avatar_url":"https://avatars1.githubusercontent.com/u/16676641?v=4","gravatar_id":"","url":"https://api.github.com/users/MunsuPark","html_url":"https://github.com/MunsuPark","followers_url":"https://api.github.com/users/MunsuPark/followers","following_url":"https://api.github.com/users/MunsuPark/following{/other_user}","gists_url":"https://api.github.com/users/MunsuPark/gists{/gist_id}","starred_url":"https://api.github.com/users/MunsuPark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MunsuPark/subscriptions","organizations_url":"https://api.github.com/users/MunsuPark/orgs","repos_url":"https://api.github.com/users/MunsuPark/repos","events_url":"https://api.github.com/users/MunsuPark/events{/privacy}","received_events_url":"https://api.github.com/users/MunsuPark/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bbungsang/used-book-store/pulls/15/commits","review_comments_url":"https://api.github.com/repos/bbungsang/used-book-store/pulls/15/comments","review_comment_url":"https://api.github.com/repos/bbungsang/used-book-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbungsang/used-book-store/issues/15/comments","statuses_url":"https://api.github.com/repos/bbungsang/used-book-store/statuses/28a6c98d7e9722fdb7b5babd3ff212b243595636","head":{"label":"bbungsang:bbungsang","ref":"bbungsang","sha":"28a6c98d7e9722fdb7b5babd3ff212b243595636","user":{"login":"bbungsang","id":22735678,"avatar_url":"https://avatars1.githubusercontent.com/u/22735678?v=4","gravatar_id":"","url":"https://api.github.com/users/bbungsang","html_url":"https://github.com/bbungsang","followers_url":"https://api.github.com/users/bbungsang/followers","following_url":"https://api.github.com/users/bbungsang/following{/other_user}","gists_url":"https://api.github.com/users/bbungsang/gists{/gist_id}","starred_url":"https://api.github.com/users/bbungsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbungsang/subscriptions","organizations_url":"https://api.github.com/users/bbungsang/orgs","repos_url":"https://api.github.com/users/bbungsang/repos","events_url":"https://api.github.com/users/bbungsang/events{/privacy}","received_events_url":"https://api.github.com/users/bbungsang/received_events","type":"User","site_admin":false},"repo":{"id":95934845,"name":"used-book-store","full_name":"bbungsang/used-book-store","owner":{"login":"bbungsang","id":22735678,"avatar_url":"https://avatars1.githubusercontent.com/u/22735678?v=4","gravatar_id":"","url":"https://api.github.com/users/bbungsang","html_url":"https://github.com/bbungsang","followers_url":"https://api.github.com/users/bbungsang/followers","following_url":"https://api.github.com/users/bbungsang/following{/other_user}","gists_url":"https://api.github.com/users/bbungsang/gists{/gist_id}","starred_url":"https://api.github.com/users/bbungsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbungsang/subscriptions","organizations_url":"https://api.github.com/users/bbungsang/orgs","repos_url":"https://api.github.com/users/bbungsang/repos","events_url":"https://api.github.com/users/bbungsang/events{/privacy}","received_events_url":"https://api.github.com/users/bbungsang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbungsang/used-book-store","description":null,"fork":false,"url":"https://api.github.com/repos/bbungsang/used-book-store","forks_url":"https://api.github.com/repos/bbungsang/used-book-store/forks","keys_url":"https://api.github.com/repos/bbungsang/used-book-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbungsang/used-book-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbungsang/used-book-store/teams","hooks_url":"https://api.github.com/repos/bbungsang/used-book-store/hooks","issue_events_url":"https://api.github.com/repos/bbungsang/used-book-store/issues/events{/number}","events_url":"https://api.github.com/repos/bbungsang/used-book-store/events","assignees_url":"https://api.github.com/repos/bbungsang/used-book-store/assignees{/user}","branches_url":"https://api.github.com/repos/bbungsang/used-book-store/branches{/branch}","tags_url":"https://api.github.com/repos/bbungsang/used-book-store/tags","blobs_url":"https://api.github.com/repos/bbungsang/used-book-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbungsang/used-book-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbungsang/used-book-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbungsang/used-book-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbungsang/used-book-store/statuses/{sha}","languages_url":"https://api.github.com/repos/bbungsang/used-book-store/languages","stargazers_url":"https://api.github.com/repos/bbungsang/used-book-store/stargazers","contributors_url":"https://api.github.com/repos/bbungsang/used-book-store/contributors","subscribers_url":"https://api.github.com/repos/bbungsang/used-book-store/subscribers","subscription_url":"https://api.github.com/repos/bbungsang/used-book-store/subscription","commits_url":"https://api.github.com/repos/bbungsang/used-book-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbungsang/used-book-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbungsang/used-book-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbungsang/used-book-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbungsang/used-book-store/contents/{+path}","compare_url":"https://api.github.com/repos/bbungsang/used-book-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbungsang/used-book-store/merges","archive_url":"https://api.github.com/repos/bbungsang/used-book-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbungsang/used-book-store/downloads","issues_url":"https://api.github.com/repos/bbungsang/used-book-store/issues{/number}","pulls_url":"https://api.github.com/repos/bbungsang/used-book-store/pulls{/number}","milestones_url":"https://api.github.com/repos/bbungsang/used-book-store/milestones{/number}","notifications_url":"https://api.github.com/repos/bbungsang/used-book-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbungsang/used-book-store/labels{/name}","releases_url":"https://api.github.com/repos/bbungsang/used-book-store/releases{/id}","deployments_url":"https://api.github.com/repos/bbungsang/used-book-store/deployments","created_at":"2017-07-01T01:30:09Z","updated_at":"2017-08-04T17:40:25Z","pushed_at":"2017-08-05T21:08:06Z","git_url":"git://github.com/bbungsang/used-book-store.git","ssh_url":"git@github.com:bbungsang/used-book-store.git","clone_url":"https://github.com/bbungsang/used-book-store.git","svn_url":"https://github.com/bbungsang/used-book-store","homepage":null,"size":10106,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"bbungsang:master","ref":"master","sha":"98a3d44085a46503c3ad1588787ce2a032baa54e","user":{"login":"bbungsang","id":22735678,"avatar_url":"https://avatars1.githubusercontent.com/u/22735678?v=4","gravatar_id":"","url":"https://api.github.com/users/bbungsang","html_url":"https://github.com/bbungsang","followers_url":"https://api.github.com/users/bbungsang/followers","following_url":"https://api.github.com/users/bbungsang/following{/other_user}","gists_url":"https://api.github.com/users/bbungsang/gists{/gist_id}","starred_url":"https://api.github.com/users/bbungsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbungsang/subscriptions","organizations_url":"https://api.github.com/users/bbungsang/orgs","repos_url":"https://api.github.com/users/bbungsang/repos","events_url":"https://api.github.com/users/bbungsang/events{/privacy}","received_events_url":"https://api.github.com/users/bbungsang/received_events","type":"User","site_admin":false},"repo":{"id":95934845,"name":"used-book-store","full_name":"bbungsang/used-book-store","owner":{"login":"bbungsang","id":22735678,"avatar_url":"https://avatars1.githubusercontent.com/u/22735678?v=4","gravatar_id":"","url":"https://api.github.com/users/bbungsang","html_url":"https://github.com/bbungsang","followers_url":"https://api.github.com/users/bbungsang/followers","following_url":"https://api.github.com/users/bbungsang/following{/other_user}","gists_url":"https://api.github.com/users/bbungsang/gists{/gist_id}","starred_url":"https://api.github.com/users/bbungsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbungsang/subscriptions","organizations_url":"https://api.github.com/users/bbungsang/orgs","repos_url":"https://api.github.com/users/bbungsang/repos","events_url":"https://api.github.com/users/bbungsang/events{/privacy}","received_events_url":"https://api.github.com/users/bbungsang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbungsang/used-book-store","description":null,"fork":false,"url":"https://api.github.com/repos/bbungsang/used-book-store","forks_url":"https://api.github.com/repos/bbungsang/used-book-store/forks","keys_url":"https://api.github.com/repos/bbungsang/used-book-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbungsang/used-book-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbungsang/used-book-store/teams","hooks_url":"https://api.github.com/repos/bbungsang/used-book-store/hooks","issue_events_url":"https://api.github.com/repos/bbungsang/used-book-store/issues/events{/number}","events_url":"https://api.github.com/repos/bbungsang/used-book-store/events","assignees_url":"https://api.github.com/repos/bbungsang/used-book-store/assignees{/user}","branches_url":"https://api.github.com/repos/bbungsang/used-book-store/branches{/branch}","tags_url":"https://api.github.com/repos/bbungsang/used-book-store/tags","blobs_url":"https://api.github.com/repos/bbungsang/used-book-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbungsang/used-book-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbungsang/used-book-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbungsang/used-book-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbungsang/used-book-store/statuses/{sha}","languages_url":"https://api.github.com/repos/bbungsang/used-book-store/languages","stargazers_url":"https://api.github.com/repos/bbungsang/used-book-store/stargazers","contributors_url":"https://api.github.com/repos/bbungsang/used-book-store/contributors","subscribers_url":"https://api.github.com/repos/bbungsang/used-book-store/subscribers","subscription_url":"https://api.github.com/repos/bbungsang/used-book-store/subscription","commits_url":"https://api.github.com/repos/bbungsang/used-book-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbungsang/used-book-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbungsang/used-book-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbungsang/used-book-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbungsang/used-book-store/contents/{+path}","compare_url":"https://api.github.com/repos/bbungsang/used-book-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbungsang/used-book-store/merges","archive_url":"https://api.github.com/repos/bbungsang/used-book-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbungsang/used-book-store/downloads","issues_url":"https://api.github.com/repos/bbungsang/used-book-store/issues{/number}","pulls_url":"https://api.github.com/repos/bbungsang/used-book-store/pulls{/number}","milestones_url":"https://api.github.com/repos/bbungsang/used-book-store/milestones{/number}","notifications_url":"https://api.github.com/repos/bbungsang/used-book-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbungsang/used-book-store/labels{/name}","releases_url":"https://api.github.com/repos/bbungsang/used-book-store/releases{/id}","deployments_url":"https://api.github.com/repos/bbungsang/used-book-store/deployments","created_at":"2017-07-01T01:30:09Z","updated_at":"2017-08-04T17:40:25Z","pushed_at":"2017-08-05T21:08:06Z","git_url":"git://github.com/bbungsang/used-book-store.git","ssh_url":"git@github.com:bbungsang/used-book-store.git","clone_url":"https://github.com/bbungsang/used-book-store.git","svn_url":"https://github.com/bbungsang/used-book-store","homepage":null,"size":10106,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbungsang/used-book-store/pulls/15"},"html":{"href":"https://github.com/bbungsang/used-book-store/pull/15"},"issue":{"href":"https://api.github.com/repos/bbungsang/used-book-store/issues/15"},"comments":{"href":"https://api.github.com/repos/bbungsang/used-book-store/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/bbungsang/used-book-store/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/bbungsang/used-book-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbungsang/used-book-store/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/bbungsang/used-book-store/statuses/28a6c98d7e9722fdb7b5babd3ff212b243595636"}}}}
{"actor":{"display_login":"MunsuPark"}}