{"action":"created","comment":{"url":"https://api.github.com/repos/yebimom/yebimom/pulls/comments/25655955","id":25655955,"diff_hunk":"@@ -0,0 +1,14 @@\n+from django.db import models\n+from centers.models.program import Program\n+from centers.models.facility import Facility\n+from centers.models.policy import Policy\n+\n+\n+class Center(models.Model):\n+    name = models.CharField(max_length=60)\n+    address = models.CharField(max_length=255)\n+    phone = models.CharField(max_length=45)\n+    url = models.URLField()\n+    program = models.ForeignKey('Program')","path":"centers/models/center.py","position":12,"original_position":12,"commit_id":"40d43005d311543a4f47b04824ec1be0157d4757","original_commit_id":"40d43005d311543a4f47b04824ec1be0157d4757","user":{"login":"dobestan","id":4688315,"avatar_url":"https://avatars.githubusercontent.com/u/4688315?v=3","gravatar_id":"","url":"https://api.github.com/users/dobestan","html_url":"https://github.com/dobestan","followers_url":"https://api.github.com/users/dobestan/followers","following_url":"https://api.github.com/users/dobestan/following{/other_user}","gists_url":"https://api.github.com/users/dobestan/gists{/gist_id}","starred_url":"https://api.github.com/users/dobestan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dobestan/subscriptions","organizations_url":"https://api.github.com/users/dobestan/orgs","repos_url":"https://api.github.com/users/dobestan/repos","events_url":"https://api.github.com/users/dobestan/events{/privacy}","received_events_url":"https://api.github.com/users/dobestan/received_events","type":"User","site_admin":false},"body":"그리고 ForeignKey안에 문자열(`\"User\"`)로 저렇게 넣는 방식하고, Class(`User`)를 명시적으로 넣는 방식이 있는데, 제 생각에는 명시적으로 넣는 방식이 더 좋은 것 같아요. 그래서 수정하자면, \r\n\r\n```\r\nfrom centers.models import Center\r\n\r\nclass Policy(models.Model):\r\n    center = models.ForeignKey(Center)\r\n```","created_at":"2015-03-03T01:20:35Z","updated_at":"2015-03-03T01:20:35Z","html_url":"https://github.com/yebimom/yebimom/pull/17#discussion_r25655955","pull_request_url":"https://api.github.com/repos/yebimom/yebimom/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/yebimom/yebimom/pulls/comments/25655955"},"html":{"href":"https://github.com/yebimom/yebimom/pull/17#discussion_r25655955"},"pull_request":{"href":"https://api.github.com/repos/yebimom/yebimom/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/yebimom/yebimom/pulls/17","id":30272541,"html_url":"https://github.com/yebimom/yebimom/pull/17","diff_url":"https://github.com/yebimom/yebimom/pull/17.diff","patch_url":"https://github.com/yebimom/yebimom/pull/17.patch","issue_url":"https://api.github.com/repos/yebimom/yebimom/issues/17","number":17,"state":"open","locked":false,"title":"init centers app","user":{"login":"xme1226","id":6496599,"avatar_url":"https://avatars.githubusercontent.com/u/6496599?v=3","gravatar_id":"","url":"https://api.github.com/users/xme1226","html_url":"https://github.com/xme1226","followers_url":"https://api.github.com/users/xme1226/followers","following_url":"https://api.github.com/users/xme1226/following{/other_user}","gists_url":"https://api.github.com/users/xme1226/gists{/gist_id}","starred_url":"https://api.github.com/users/xme1226/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xme1226/subscriptions","organizations_url":"https://api.github.com/users/xme1226/orgs","repos_url":"https://api.github.com/users/xme1226/repos","events_url":"https://api.github.com/users/xme1226/events{/privacy}","received_events_url":"https://api.github.com/users/xme1226/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-02T10:32:03Z","updated_at":"2015-03-03T01:20:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"197f021a49d182c7c3d965a46a94a481eeb7eecd","assignee":{"login":"xme1226","id":6496599,"avatar_url":"https://avatars.githubusercontent.com/u/6496599?v=3","gravatar_id":"","url":"https://api.github.com/users/xme1226","html_url":"https://github.com/xme1226","followers_url":"https://api.github.com/users/xme1226/followers","following_url":"https://api.github.com/users/xme1226/following{/other_user}","gists_url":"https://api.github.com/users/xme1226/gists{/gist_id}","starred_url":"https://api.github.com/users/xme1226/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xme1226/subscriptions","organizations_url":"https://api.github.com/users/xme1226/orgs","repos_url":"https://api.github.com/users/xme1226/repos","events_url":"https://api.github.com/users/xme1226/events{/privacy}","received_events_url":"https://api.github.com/users/xme1226/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yebimom/yebimom/milestones/1","html_url":"https://github.com/yebimom/yebimom/milestones/[Sprint%20%2301]%20%EC%98%88%EB%B9%84%EB%A7%98%20%EA%B8%B0%ED%9A%8D%ED%95%98%EA%B3%A0%20%EA%B0%9C%EB%B0%9C%20%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0%20(%20W01%20/%2020150301%20-%2020150307%20)","labels_url":"https://api.github.com/repos/yebimom/yebimom/milestones/1/labels","id":998347,"number":1,"title":"[Sprint #01] 예비맘 기획하고 개발 시작하기 ( W01 / 20150301 - 20150307 )","description":"","creator":{"login":"dobestan","id":4688315,"avatar_url":"https://avatars.githubusercontent.com/u/4688315?v=3","gravatar_id":"","url":"https://api.github.com/users/dobestan","html_url":"https://github.com/dobestan","followers_url":"https://api.github.com/users/dobestan/followers","following_url":"https://api.github.com/users/dobestan/following{/other_user}","gists_url":"https://api.github.com/users/dobestan/gists{/gist_id}","starred_url":"https://api.github.com/users/dobestan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dobestan/subscriptions","organizations_url":"https://api.github.com/users/dobestan/orgs","repos_url":"https://api.github.com/users/dobestan/repos","events_url":"https://api.github.com/users/dobestan/events{/privacy}","received_events_url":"https://api.github.com/users/dobestan/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":6,"state":"open","created_at":"2015-02-27T06:41:18Z","updated_at":"2015-03-03T01:09:48Z","due_on":"2015-03-07T15:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/yebimom/yebimom/pulls/17/commits","review_comments_url":"https://api.github.com/repos/yebimom/yebimom/pulls/17/comments","review_comment_url":"https://api.github.com/repos/yebimom/yebimom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yebimom/yebimom/issues/17/comments","statuses_url":"https://api.github.com/repos/yebimom/yebimom/statuses/40d43005d311543a4f47b04824ec1be0157d4757","head":{"label":"xme1226:feature/centers","ref":"feature/centers","sha":"40d43005d311543a4f47b04824ec1be0157d4757","user":{"login":"xme1226","id":6496599,"avatar_url":"https://avatars.githubusercontent.com/u/6496599?v=3","gravatar_id":"","url":"https://api.github.com/users/xme1226","html_url":"https://github.com/xme1226","followers_url":"https://api.github.com/users/xme1226/followers","following_url":"https://api.github.com/users/xme1226/following{/other_user}","gists_url":"https://api.github.com/users/xme1226/gists{/gist_id}","starred_url":"https://api.github.com/users/xme1226/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xme1226/subscriptions","organizations_url":"https://api.github.com/users/xme1226/orgs","repos_url":"https://api.github.com/users/xme1226/repos","events_url":"https://api.github.com/users/xme1226/events{/privacy}","received_events_url":"https://api.github.com/users/xme1226/received_events","type":"User","site_admin":false},"repo":{"id":31514462,"name":"yebimom","full_name":"xme1226/yebimom","owner":{"login":"xme1226","id":6496599,"avatar_url":"https://avatars.githubusercontent.com/u/6496599?v=3","gravatar_id":"","url":"https://api.github.com/users/xme1226","html_url":"https://github.com/xme1226","followers_url":"https://api.github.com/users/xme1226/followers","following_url":"https://api.github.com/users/xme1226/following{/other_user}","gists_url":"https://api.github.com/users/xme1226/gists{/gist_id}","starred_url":"https://api.github.com/users/xme1226/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xme1226/subscriptions","organizations_url":"https://api.github.com/users/xme1226/orgs","repos_url":"https://api.github.com/users/xme1226/repos","events_url":"https://api.github.com/users/xme1226/events{/privacy}","received_events_url":"https://api.github.com/users/xme1226/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xme1226/yebimom","description":"산후조리원에 대한 다양한 정보와 신뢰성있는 리뷰를 제공하기 위한 서비스","fork":true,"url":"https://api.github.com/repos/xme1226/yebimom","forks_url":"https://api.github.com/repos/xme1226/yebimom/forks","keys_url":"https://api.github.com/repos/xme1226/yebimom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xme1226/yebimom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xme1226/yebimom/teams","hooks_url":"https://api.github.com/repos/xme1226/yebimom/hooks","issue_events_url":"https://api.github.com/repos/xme1226/yebimom/issues/events{/number}","events_url":"https://api.github.com/repos/xme1226/yebimom/events","assignees_url":"https://api.github.com/repos/xme1226/yebimom/assignees{/user}","branches_url":"https://api.github.com/repos/xme1226/yebimom/branches{/branch}","tags_url":"https://api.github.com/repos/xme1226/yebimom/tags","blobs_url":"https://api.github.com/repos/xme1226/yebimom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xme1226/yebimom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xme1226/yebimom/git/refs{/sha}","trees_url":"https://api.github.com/repos/xme1226/yebimom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xme1226/yebimom/statuses/{sha}","languages_url":"https://api.github.com/repos/xme1226/yebimom/languages","stargazers_url":"https://api.github.com/repos/xme1226/yebimom/stargazers","contributors_url":"https://api.github.com/repos/xme1226/yebimom/contributors","subscribers_url":"https://api.github.com/repos/xme1226/yebimom/subscribers","subscription_url":"https://api.github.com/repos/xme1226/yebimom/subscription","commits_url":"https://api.github.com/repos/xme1226/yebimom/commits{/sha}","git_commits_url":"https://api.github.com/repos/xme1226/yebimom/git/commits{/sha}","comments_url":"https://api.github.com/repos/xme1226/yebimom/comments{/number}","issue_comment_url":"https://api.github.com/repos/xme1226/yebimom/issues/comments{/number}","contents_url":"https://api.github.com/repos/xme1226/yebimom/contents/{+path}","compare_url":"https://api.github.com/repos/xme1226/yebimom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xme1226/yebimom/merges","archive_url":"https://api.github.com/repos/xme1226/yebimom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xme1226/yebimom/downloads","issues_url":"https://api.github.com/repos/xme1226/yebimom/issues{/number}","pulls_url":"https://api.github.com/repos/xme1226/yebimom/pulls{/number}","milestones_url":"https://api.github.com/repos/xme1226/yebimom/milestones{/number}","notifications_url":"https://api.github.com/repos/xme1226/yebimom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xme1226/yebimom/labels{/name}","releases_url":"https://api.github.com/repos/xme1226/yebimom/releases{/id}","created_at":"2015-03-01T23:05:10Z","updated_at":"2015-03-01T23:05:11Z","pushed_at":"2015-03-03T00:14:56Z","git_url":"git://github.com/xme1226/yebimom.git","ssh_url":"git@github.com:xme1226/yebimom.git","clone_url":"https://github.com/xme1226/yebimom.git","svn_url":"https://github.com/xme1226/yebimom","homepage":"https://yebimom.com","size":116,"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":"develop"}},"base":{"label":"yebimom:develop","ref":"develop","sha":"ea5f9374e78f2a9f8bb884b24b589d87ad55bbad","user":{"login":"yebimom","id":11224419,"avatar_url":"https://avatars.githubusercontent.com/u/11224419?v=3","gravatar_id":"","url":"https://api.github.com/users/yebimom","html_url":"https://github.com/yebimom","followers_url":"https://api.github.com/users/yebimom/followers","following_url":"https://api.github.com/users/yebimom/following{/other_user}","gists_url":"https://api.github.com/users/yebimom/gists{/gist_id}","starred_url":"https://api.github.com/users/yebimom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yebimom/subscriptions","organizations_url":"https://api.github.com/users/yebimom/orgs","repos_url":"https://api.github.com/users/yebimom/repos","events_url":"https://api.github.com/users/yebimom/events{/privacy}","received_events_url":"https://api.github.com/users/yebimom/received_events","type":"Organization","site_admin":false},"repo":{"id":31406265,"name":"yebimom","full_name":"yebimom/yebimom","owner":{"login":"yebimom","id":11224419,"avatar_url":"https://avatars.githubusercontent.com/u/11224419?v=3","gravatar_id":"","url":"https://api.github.com/users/yebimom","html_url":"https://github.com/yebimom","followers_url":"https://api.github.com/users/yebimom/followers","following_url":"https://api.github.com/users/yebimom/following{/other_user}","gists_url":"https://api.github.com/users/yebimom/gists{/gist_id}","starred_url":"https://api.github.com/users/yebimom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yebimom/subscriptions","organizations_url":"https://api.github.com/users/yebimom/orgs","repos_url":"https://api.github.com/users/yebimom/repos","events_url":"https://api.github.com/users/yebimom/events{/privacy}","received_events_url":"https://api.github.com/users/yebimom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yebimom/yebimom","description":"산후조리원에 대한 다양한 정보와 신뢰성있는 리뷰를 제공하기 위한 서비스","fork":false,"url":"https://api.github.com/repos/yebimom/yebimom","forks_url":"https://api.github.com/repos/yebimom/yebimom/forks","keys_url":"https://api.github.com/repos/yebimom/yebimom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yebimom/yebimom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yebimom/yebimom/teams","hooks_url":"https://api.github.com/repos/yebimom/yebimom/hooks","issue_events_url":"https://api.github.com/repos/yebimom/yebimom/issues/events{/number}","events_url":"https://api.github.com/repos/yebimom/yebimom/events","assignees_url":"https://api.github.com/repos/yebimom/yebimom/assignees{/user}","branches_url":"https://api.github.com/repos/yebimom/yebimom/branches{/branch}","tags_url":"https://api.github.com/repos/yebimom/yebimom/tags","blobs_url":"https://api.github.com/repos/yebimom/yebimom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yebimom/yebimom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yebimom/yebimom/git/refs{/sha}","trees_url":"https://api.github.com/repos/yebimom/yebimom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yebimom/yebimom/statuses/{sha}","languages_url":"https://api.github.com/repos/yebimom/yebimom/languages","stargazers_url":"https://api.github.com/repos/yebimom/yebimom/stargazers","contributors_url":"https://api.github.com/repos/yebimom/yebimom/contributors","subscribers_url":"https://api.github.com/repos/yebimom/yebimom/subscribers","subscription_url":"https://api.github.com/repos/yebimom/yebimom/subscription","commits_url":"https://api.github.com/repos/yebimom/yebimom/commits{/sha}","git_commits_url":"https://api.github.com/repos/yebimom/yebimom/git/commits{/sha}","comments_url":"https://api.github.com/repos/yebimom/yebimom/comments{/number}","issue_comment_url":"https://api.github.com/repos/yebimom/yebimom/issues/comments{/number}","contents_url":"https://api.github.com/repos/yebimom/yebimom/contents/{+path}","compare_url":"https://api.github.com/repos/yebimom/yebimom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yebimom/yebimom/merges","archive_url":"https://api.github.com/repos/yebimom/yebimom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yebimom/yebimom/downloads","issues_url":"https://api.github.com/repos/yebimom/yebimom/issues{/number}","pulls_url":"https://api.github.com/repos/yebimom/yebimom/pulls{/number}","milestones_url":"https://api.github.com/repos/yebimom/yebimom/milestones{/number}","notifications_url":"https://api.github.com/repos/yebimom/yebimom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yebimom/yebimom/labels{/name}","releases_url":"https://api.github.com/repos/yebimom/yebimom/releases{/id}","created_at":"2015-02-27T06:18:14Z","updated_at":"2015-03-02T23:42:03Z","pushed_at":"2015-03-02T23:42:03Z","git_url":"git://github.com/yebimom/yebimom.git","ssh_url":"git@github.com:yebimom/yebimom.git","clone_url":"https://github.com/yebimom/yebimom.git","svn_url":"https://github.com/yebimom/yebimom","homepage":"https://yebimom.com","size":610,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/yebimom/yebimom/pulls/17"},"html":{"href":"https://github.com/yebimom/yebimom/pull/17"},"issue":{"href":"https://api.github.com/repos/yebimom/yebimom/issues/17"},"comments":{"href":"https://api.github.com/repos/yebimom/yebimom/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/yebimom/yebimom/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/yebimom/yebimom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yebimom/yebimom/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/yebimom/yebimom/statuses/40d43005d311543a4f47b04824ec1be0157d4757"}}}}