{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/44213712","id":44213712,"diff_hunk":"@@ -385,6 +385,15 @@ where ``reason`` is a short message (intended for developers or logging, not for\n end users) indicating the reason the request was rejected.  See\n :doc:`/ref/csrf`.\n \n+The default implementation ``django.views.csrf.csrf_failure`` takes an additional\n+keyword parameter ``template_name`` that defaults to ``'403_csrf.html'``. If a\n+template can be found under this name, it will be used to render the error\n+message.\n+\n+.. versionchanged:: 1.10\n+\n+   The ``template_parameter`` of ``csrf_failure`` has been added.","path":"docs/ref/settings.txt","position":null,"original_position":11,"commit_id":"cd944836d21adc83f8cd0cd1afcee6b9bb7a3219","original_commit_id":"8105c022cdee64f038dbb2d7ba17fe09a4313daf","user":{"login":"raphaelm","id":64280,"avatar_url":"https://avatars.githubusercontent.com/u/64280?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelm","html_url":"https://github.com/raphaelm","followers_url":"https://api.github.com/users/raphaelm/followers","following_url":"https://api.github.com/users/raphaelm/following{/other_user}","gists_url":"https://api.github.com/users/raphaelm/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelm/subscriptions","organizations_url":"https://api.github.com/users/raphaelm/orgs","repos_url":"https://api.github.com/users/raphaelm/repos","events_url":"https://api.github.com/users/raphaelm/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelm/received_events","type":"User","site_admin":false},"body":"Sure, fixed. That's what happs when one starts working on two different things at the same time, I guess…","created_at":"2015-11-07T15:58:43Z","updated_at":"2015-11-07T15:58:43Z","html_url":"https://github.com/django/django/pull/5577#discussion_r44213712","pull_request_url":"https://api.github.com/repos/django/django/pulls/5577","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/44213712"},"html":{"href":"https://github.com/django/django/pull/5577#discussion_r44213712"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/5577"}}},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/5577","id":50035904,"html_url":"https://github.com/django/django/pull/5577","diff_url":"https://github.com/django/django/pull/5577.diff","patch_url":"https://github.com/django/django/pull/5577.patch","issue_url":"https://api.github.com/repos/django/django/issues/5577","number":5577,"state":"open","locked":false,"title":"Fixed #25695 -- Added template_name parameter to csrf_failure view","user":{"login":"raphaelm","id":64280,"avatar_url":"https://avatars.githubusercontent.com/u/64280?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelm","html_url":"https://github.com/raphaelm","followers_url":"https://api.github.com/users/raphaelm/followers","following_url":"https://api.github.com/users/raphaelm/following{/other_user}","gists_url":"https://api.github.com/users/raphaelm/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelm/subscriptions","organizations_url":"https://api.github.com/users/raphaelm/orgs","repos_url":"https://api.github.com/users/raphaelm/repos","events_url":"https://api.github.com/users/raphaelm/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelm/received_events","type":"User","site_admin":false},"body":"https://code.djangoproject.com/ticket/25695","created_at":"2015-11-07T13:19:11Z","updated_at":"2015-11-07T15:58:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1ff6bcc258ffb67bbdebd73c1114e5db8f37fcc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/5577/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/5577/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/5577/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/cd944836d21adc83f8cd0cd1afcee6b9bb7a3219","head":{"label":"raphaelm:ticket_25695","ref":"ticket_25695","sha":"cd944836d21adc83f8cd0cd1afcee6b9bb7a3219","user":{"login":"raphaelm","id":64280,"avatar_url":"https://avatars.githubusercontent.com/u/64280?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelm","html_url":"https://github.com/raphaelm","followers_url":"https://api.github.com/users/raphaelm/followers","following_url":"https://api.github.com/users/raphaelm/following{/other_user}","gists_url":"https://api.github.com/users/raphaelm/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelm/subscriptions","organizations_url":"https://api.github.com/users/raphaelm/orgs","repos_url":"https://api.github.com/users/raphaelm/repos","events_url":"https://api.github.com/users/raphaelm/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelm/received_events","type":"User","site_admin":false},"repo":{"id":24692186,"name":"django","full_name":"raphaelm/django","owner":{"login":"raphaelm","id":64280,"avatar_url":"https://avatars.githubusercontent.com/u/64280?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelm","html_url":"https://github.com/raphaelm","followers_url":"https://api.github.com/users/raphaelm/followers","following_url":"https://api.github.com/users/raphaelm/following{/other_user}","gists_url":"https://api.github.com/users/raphaelm/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelm/subscriptions","organizations_url":"https://api.github.com/users/raphaelm/orgs","repos_url":"https://api.github.com/users/raphaelm/repos","events_url":"https://api.github.com/users/raphaelm/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raphaelm/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/raphaelm/django","forks_url":"https://api.github.com/repos/raphaelm/django/forks","keys_url":"https://api.github.com/repos/raphaelm/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raphaelm/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raphaelm/django/teams","hooks_url":"https://api.github.com/repos/raphaelm/django/hooks","issue_events_url":"https://api.github.com/repos/raphaelm/django/issues/events{/number}","events_url":"https://api.github.com/repos/raphaelm/django/events","assignees_url":"https://api.github.com/repos/raphaelm/django/assignees{/user}","branches_url":"https://api.github.com/repos/raphaelm/django/branches{/branch}","tags_url":"https://api.github.com/repos/raphaelm/django/tags","blobs_url":"https://api.github.com/repos/raphaelm/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raphaelm/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raphaelm/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/raphaelm/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raphaelm/django/statuses/{sha}","languages_url":"https://api.github.com/repos/raphaelm/django/languages","stargazers_url":"https://api.github.com/repos/raphaelm/django/stargazers","contributors_url":"https://api.github.com/repos/raphaelm/django/contributors","subscribers_url":"https://api.github.com/repos/raphaelm/django/subscribers","subscription_url":"https://api.github.com/repos/raphaelm/django/subscription","commits_url":"https://api.github.com/repos/raphaelm/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/raphaelm/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/raphaelm/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/raphaelm/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/raphaelm/django/contents/{+path}","compare_url":"https://api.github.com/repos/raphaelm/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raphaelm/django/merges","archive_url":"https://api.github.com/repos/raphaelm/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raphaelm/django/downloads","issues_url":"https://api.github.com/repos/raphaelm/django/issues{/number}","pulls_url":"https://api.github.com/repos/raphaelm/django/pulls{/number}","milestones_url":"https://api.github.com/repos/raphaelm/django/milestones{/number}","notifications_url":"https://api.github.com/repos/raphaelm/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raphaelm/django/labels{/name}","releases_url":"https://api.github.com/repos/raphaelm/django/releases{/id}","created_at":"2014-10-01T19:27:33Z","updated_at":"2015-06-04T08:17:39Z","pushed_at":"2015-11-07T15:58:20Z","git_url":"git://github.com/raphaelm/django.git","ssh_url":"git@github.com:raphaelm/django.git","clone_url":"https://github.com/raphaelm/django.git","svn_url":"https://github.com/raphaelm/django","homepage":"https://www.djangoproject.com/","size":142813,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"django:master","ref":"master","sha":"c3a974c81ec9d9b102cc9bd10c23e5579c751df1","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":4164482,"name":"django","full_name":"django/django","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","created_at":"2012-04-28T02:47:18Z","updated_at":"2015-11-07T14:38:05Z","pushed_at":"2015-11-07T15:58:21Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":321463,"stargazers_count":16592,"watchers_count":16592,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6742,"mirror_url":null,"open_issues_count":104,"forks":6742,"open_issues":104,"watchers":16592,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/5577"},"html":{"href":"https://github.com/django/django/pull/5577"},"issue":{"href":"https://api.github.com/repos/django/django/issues/5577"},"comments":{"href":"https://api.github.com/repos/django/django/issues/5577/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/5577/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/5577/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/cd944836d21adc83f8cd0cd1afcee6b9bb7a3219"}}}}