{"action":"created","comment":{"url":"https://api.github.com/repos/CTPUG/wafer/pulls/comments/48343319","id":48343319,"diff_hunk":"@@ -66,6 +68,11 @@ class TalkCreate(LoginRequiredMixin, CreateView):\n     form_class = TalkForm\n     template_name = 'wafer.talks/talk_form.html'\n \n+    def get_form_kwargs(self):\n+        kwargs = super(TalkCreate, self).get_form_kwargs()\n+        kwargs.update({'user': self.request.user})","path":"wafer/talks/views.py","position":22,"original_position":22,"commit_id":"8805473d5082aa656e7446eb1e7042cf1fa56080","original_commit_id":"8805473d5082aa656e7446eb1e7042cf1fa56080","user":{"login":"stefanor","id":442117,"avatar_url":"https://avatars.githubusercontent.com/u/442117?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanor","html_url":"https://github.com/stefanor","followers_url":"https://api.github.com/users/stefanor/followers","following_url":"https://api.github.com/users/stefanor/following{/other_user}","gists_url":"https://api.github.com/users/stefanor/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanor/subscriptions","organizations_url":"https://api.github.com/users/stefanor/orgs","repos_url":"https://api.github.com/users/stefanor/repos","events_url":"https://api.github.com/users/stefanor/events{/privacy}","received_events_url":"https://api.github.com/users/stefanor/received_events","type":"User","site_admin":false},"body":"There's simpler syntax: `kwargs['user'] = self.request.user`","created_at":"2015-12-23T13:06:33Z","updated_at":"2015-12-23T13:06:33Z","html_url":"https://github.com/CTPUG/wafer/pull/175#discussion_r48343319","pull_request_url":"https://api.github.com/repos/CTPUG/wafer/pulls/175","_links":{"self":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/comments/48343319"},"html":{"href":"https://github.com/CTPUG/wafer/pull/175#discussion_r48343319"},"pull_request":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/175"}}},"pull_request":{"url":"https://api.github.com/repos/CTPUG/wafer/pulls/175","id":52228854,"html_url":"https://github.com/CTPUG/wafer/pull/175","diff_url":"https://github.com/CTPUG/wafer/pull/175.diff","patch_url":"https://github.com/CTPUG/wafer/pull/175.patch","issue_url":"https://api.github.com/repos/CTPUG/wafer/issues/175","number":175,"state":"open","locked":false,"title":"Private talk notes","user":{"login":"madduck","id":195073,"avatar_url":"https://avatars.githubusercontent.com/u/195073?v=3","gravatar_id":"","url":"https://api.github.com/users/madduck","html_url":"https://github.com/madduck","followers_url":"https://api.github.com/users/madduck/followers","following_url":"https://api.github.com/users/madduck/following{/other_user}","gists_url":"https://api.github.com/users/madduck/gists{/gist_id}","starred_url":"https://api.github.com/users/madduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madduck/subscriptions","organizations_url":"https://api.github.com/users/madduck/orgs","repos_url":"https://api.github.com/users/madduck/repos","events_url":"https://api.github.com/users/madduck/events{/privacy}","received_events_url":"https://api.github.com/users/madduck/received_events","type":"User","site_admin":false},"body":"This addresses #117 in what I hope is an acceptable way. I did have to refactor the crispy form code a bit, but I only really made it more explicit.\r\n\r\nThe trick to remove a field from `self.fields` to hide it *and* prevent access to it (incl. preventing it from being considered after submission) seems to be standard…\r\n\r\nI chose to allow HTML in the private note space, and to format URLs for convenience. While this isn't 100% safe I am sure, we are giving access to orga folks here…","created_at":"2015-12-01T08:31:00Z","updated_at":"2015-12-23T13:06:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"246faef5da5a59ba28c9193f26e2c6f4cb6952ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CTPUG/wafer/pulls/175/commits","review_comments_url":"https://api.github.com/repos/CTPUG/wafer/pulls/175/comments","review_comment_url":"https://api.github.com/repos/CTPUG/wafer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CTPUG/wafer/issues/175/comments","statuses_url":"https://api.github.com/repos/CTPUG/wafer/statuses/8805473d5082aa656e7446eb1e7042cf1fa56080","head":{"label":"madduck:117-private-talk-notes","ref":"117-private-talk-notes","sha":"8805473d5082aa656e7446eb1e7042cf1fa56080","user":{"login":"madduck","id":195073,"avatar_url":"https://avatars.githubusercontent.com/u/195073?v=3","gravatar_id":"","url":"https://api.github.com/users/madduck","html_url":"https://github.com/madduck","followers_url":"https://api.github.com/users/madduck/followers","following_url":"https://api.github.com/users/madduck/following{/other_user}","gists_url":"https://api.github.com/users/madduck/gists{/gist_id}","starred_url":"https://api.github.com/users/madduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madduck/subscriptions","organizations_url":"https://api.github.com/users/madduck/orgs","repos_url":"https://api.github.com/users/madduck/repos","events_url":"https://api.github.com/users/madduck/events{/privacy}","received_events_url":"https://api.github.com/users/madduck/received_events","type":"User","site_admin":false},"repo":{"id":46833484,"name":"wafer","full_name":"madduck/wafer","owner":{"login":"madduck","id":195073,"avatar_url":"https://avatars.githubusercontent.com/u/195073?v=3","gravatar_id":"","url":"https://api.github.com/users/madduck","html_url":"https://github.com/madduck","followers_url":"https://api.github.com/users/madduck/followers","following_url":"https://api.github.com/users/madduck/following{/other_user}","gists_url":"https://api.github.com/users/madduck/gists{/gist_id}","starred_url":"https://api.github.com/users/madduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madduck/subscriptions","organizations_url":"https://api.github.com/users/madduck/orgs","repos_url":"https://api.github.com/users/madduck/repos","events_url":"https://api.github.com/users/madduck/events{/privacy}","received_events_url":"https://api.github.com/users/madduck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madduck/wafer","description":"A wafer-thin web application for running small conferences. Built using Django.","fork":true,"url":"https://api.github.com/repos/madduck/wafer","forks_url":"https://api.github.com/repos/madduck/wafer/forks","keys_url":"https://api.github.com/repos/madduck/wafer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madduck/wafer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madduck/wafer/teams","hooks_url":"https://api.github.com/repos/madduck/wafer/hooks","issue_events_url":"https://api.github.com/repos/madduck/wafer/issues/events{/number}","events_url":"https://api.github.com/repos/madduck/wafer/events","assignees_url":"https://api.github.com/repos/madduck/wafer/assignees{/user}","branches_url":"https://api.github.com/repos/madduck/wafer/branches{/branch}","tags_url":"https://api.github.com/repos/madduck/wafer/tags","blobs_url":"https://api.github.com/repos/madduck/wafer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madduck/wafer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madduck/wafer/git/refs{/sha}","trees_url":"https://api.github.com/repos/madduck/wafer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madduck/wafer/statuses/{sha}","languages_url":"https://api.github.com/repos/madduck/wafer/languages","stargazers_url":"https://api.github.com/repos/madduck/wafer/stargazers","contributors_url":"https://api.github.com/repos/madduck/wafer/contributors","subscribers_url":"https://api.github.com/repos/madduck/wafer/subscribers","subscription_url":"https://api.github.com/repos/madduck/wafer/subscription","commits_url":"https://api.github.com/repos/madduck/wafer/commits{/sha}","git_commits_url":"https://api.github.com/repos/madduck/wafer/git/commits{/sha}","comments_url":"https://api.github.com/repos/madduck/wafer/comments{/number}","issue_comment_url":"https://api.github.com/repos/madduck/wafer/issues/comments{/number}","contents_url":"https://api.github.com/repos/madduck/wafer/contents/{+path}","compare_url":"https://api.github.com/repos/madduck/wafer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madduck/wafer/merges","archive_url":"https://api.github.com/repos/madduck/wafer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madduck/wafer/downloads","issues_url":"https://api.github.com/repos/madduck/wafer/issues{/number}","pulls_url":"https://api.github.com/repos/madduck/wafer/pulls{/number}","milestones_url":"https://api.github.com/repos/madduck/wafer/milestones{/number}","notifications_url":"https://api.github.com/repos/madduck/wafer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madduck/wafer/labels{/name}","releases_url":"https://api.github.com/repos/madduck/wafer/releases{/id}","created_at":"2015-11-25T02:53:29Z","updated_at":"2015-11-25T02:53:30Z","pushed_at":"2015-12-09T11:55:23Z","git_url":"git://github.com/madduck/wafer.git","ssh_url":"git@github.com:madduck/wafer.git","clone_url":"https://github.com/madduck/wafer.git","svn_url":"https://github.com/madduck/wafer","homepage":null,"size":993,"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":"master"}},"base":{"label":"CTPUG:master","ref":"master","sha":"fa99ac26498f04e4f2192e9bfde2cc2d85ae7d1a","user":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"repo":{"id":8658619,"name":"wafer","full_name":"CTPUG/wafer","owner":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CTPUG/wafer","description":"A wafer-thin web application for running small conferences. Built using Django.","fork":false,"url":"https://api.github.com/repos/CTPUG/wafer","forks_url":"https://api.github.com/repos/CTPUG/wafer/forks","keys_url":"https://api.github.com/repos/CTPUG/wafer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CTPUG/wafer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CTPUG/wafer/teams","hooks_url":"https://api.github.com/repos/CTPUG/wafer/hooks","issue_events_url":"https://api.github.com/repos/CTPUG/wafer/issues/events{/number}","events_url":"https://api.github.com/repos/CTPUG/wafer/events","assignees_url":"https://api.github.com/repos/CTPUG/wafer/assignees{/user}","branches_url":"https://api.github.com/repos/CTPUG/wafer/branches{/branch}","tags_url":"https://api.github.com/repos/CTPUG/wafer/tags","blobs_url":"https://api.github.com/repos/CTPUG/wafer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CTPUG/wafer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CTPUG/wafer/git/refs{/sha}","trees_url":"https://api.github.com/repos/CTPUG/wafer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CTPUG/wafer/statuses/{sha}","languages_url":"https://api.github.com/repos/CTPUG/wafer/languages","stargazers_url":"https://api.github.com/repos/CTPUG/wafer/stargazers","contributors_url":"https://api.github.com/repos/CTPUG/wafer/contributors","subscribers_url":"https://api.github.com/repos/CTPUG/wafer/subscribers","subscription_url":"https://api.github.com/repos/CTPUG/wafer/subscription","commits_url":"https://api.github.com/repos/CTPUG/wafer/commits{/sha}","git_commits_url":"https://api.github.com/repos/CTPUG/wafer/git/commits{/sha}","comments_url":"https://api.github.com/repos/CTPUG/wafer/comments{/number}","issue_comment_url":"https://api.github.com/repos/CTPUG/wafer/issues/comments{/number}","contents_url":"https://api.github.com/repos/CTPUG/wafer/contents/{+path}","compare_url":"https://api.github.com/repos/CTPUG/wafer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CTPUG/wafer/merges","archive_url":"https://api.github.com/repos/CTPUG/wafer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CTPUG/wafer/downloads","issues_url":"https://api.github.com/repos/CTPUG/wafer/issues{/number}","pulls_url":"https://api.github.com/repos/CTPUG/wafer/pulls{/number}","milestones_url":"https://api.github.com/repos/CTPUG/wafer/milestones{/number}","notifications_url":"https://api.github.com/repos/CTPUG/wafer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CTPUG/wafer/labels{/name}","releases_url":"https://api.github.com/repos/CTPUG/wafer/releases{/id}","created_at":"2013-03-08T19:50:58Z","updated_at":"2015-10-05T11:14:38Z","pushed_at":"2015-12-21T17:05:42Z","git_url":"git://github.com/CTPUG/wafer.git","ssh_url":"git@github.com:CTPUG/wafer.git","clone_url":"https://github.com/CTPUG/wafer.git","svn_url":"https://github.com/CTPUG/wafer","homepage":null,"size":992,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":26,"forks":7,"open_issues":26,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/175"},"html":{"href":"https://github.com/CTPUG/wafer/pull/175"},"issue":{"href":"https://api.github.com/repos/CTPUG/wafer/issues/175"},"comments":{"href":"https://api.github.com/repos/CTPUG/wafer/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/CTPUG/wafer/statuses/8805473d5082aa656e7446eb1e7042cf1fa56080"}}}}