{"action":"created","comment":{"url":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/comments/22758223","id":22758223,"diff_hunk":"@@ -6,7 +6,18 @@\n {% if change %}{% if not is_popup %}\n   <ul class=\"object-tools\">\n     <li><a href=\"history/\" class=\"historylink\">History</a></li>\n-    <li><a href=\"{% url \"loginas-user-login\" object_id %}\">Log in as user</a></li>\n+    <li><a id=\"loginas-link\" href=\"#\">Log in as user</a></li>\n   </ul>\n+\n+  <form method=\"post\" id=\"loginas-form\" action=\"{% url 'loginas-user-login' object_id %}\" stype=\"display:none\">\n+    {% csrf_token %}\n+  </form>\n+  <script>\n+    django.jQuery('#loginas-link').on('click', function() {","path":"loginas/templates/loginas/change_form.html","position":12,"original_position":12,"commit_id":"26410658e98c8e8ee2a0107d88b78d97d1237be8","original_commit_id":"0d7a99a1ecc25a9d90eb7ad3ab2cfc83170fbeaf","user":{"login":"jakubroztocil","id":326885,"avatar_url":"https://avatars.githubusercontent.com/u/326885?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubroztocil","html_url":"https://github.com/jakubroztocil","followers_url":"https://api.github.com/users/jakubroztocil/followers","following_url":"https://api.github.com/users/jakubroztocil/following{/other_user}","gists_url":"https://api.github.com/users/jakubroztocil/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubroztocil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubroztocil/subscriptions","organizations_url":"https://api.github.com/users/jakubroztocil/orgs","repos_url":"https://api.github.com/users/jakubroztocil/repos","events_url":"https://api.github.com/users/jakubroztocil/events{/privacy}","received_events_url":"https://api.github.com/users/jakubroztocil/received_events","type":"User","site_admin":false},"body":"Yes, it does (http://jsfiddle.net/5hcby28s/).","created_at":"2015-01-10T10:56:43Z","updated_at":"2015-01-10T10:56:43Z","html_url":"https://github.com/stochastic-technologies/django-loginas/pull/23#discussion_r22758223","pull_request_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/comments/22758223"},"html":{"href":"https://github.com/stochastic-technologies/django-loginas/pull/23#discussion_r22758223"},"pull_request":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/23","id":27120648,"html_url":"https://github.com/stochastic-technologies/django-loginas/pull/23","diff_url":"https://github.com/stochastic-technologies/django-loginas/pull/23.diff","patch_url":"https://github.com/stochastic-technologies/django-loginas/pull/23.patch","issue_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/issues/23","number":23,"state":"open","locked":false,"title":"Use POST instead of GET and validate CSRF token","user":{"login":"jakubroztocil","id":326885,"avatar_url":"https://avatars.githubusercontent.com/u/326885?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubroztocil","html_url":"https://github.com/jakubroztocil","followers_url":"https://api.github.com/users/jakubroztocil/followers","following_url":"https://api.github.com/users/jakubroztocil/following{/other_user}","gists_url":"https://api.github.com/users/jakubroztocil/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubroztocil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubroztocil/subscriptions","organizations_url":"https://api.github.com/users/jakubroztocil/orgs","repos_url":"https://api.github.com/users/jakubroztocil/repos","events_url":"https://api.github.com/users/jakubroztocil/events{/privacy}","received_events_url":"https://api.github.com/users/jakubroztocil/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-09T18:55:44Z","updated_at":"2015-01-10T10:56:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fec320de627b8fc692c82984b94174fe7482f8e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/23/commits","review_comments_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/23/comments","review_comment_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/comments/{number}","comments_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/issues/23/comments","statuses_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/statuses/26410658e98c8e8ee2a0107d88b78d97d1237be8","head":{"label":"jakubroztocil:master","ref":"master","sha":"26410658e98c8e8ee2a0107d88b78d97d1237be8","user":{"login":"jakubroztocil","id":326885,"avatar_url":"https://avatars.githubusercontent.com/u/326885?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubroztocil","html_url":"https://github.com/jakubroztocil","followers_url":"https://api.github.com/users/jakubroztocil/followers","following_url":"https://api.github.com/users/jakubroztocil/following{/other_user}","gists_url":"https://api.github.com/users/jakubroztocil/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubroztocil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubroztocil/subscriptions","organizations_url":"https://api.github.com/users/jakubroztocil/orgs","repos_url":"https://api.github.com/users/jakubroztocil/repos","events_url":"https://api.github.com/users/jakubroztocil/events{/privacy}","received_events_url":"https://api.github.com/users/jakubroztocil/received_events","type":"User","site_admin":false},"repo":{"id":28960810,"name":"django-loginas","full_name":"jakubroztocil/django-loginas","owner":{"login":"jakubroztocil","id":326885,"avatar_url":"https://avatars.githubusercontent.com/u/326885?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubroztocil","html_url":"https://github.com/jakubroztocil","followers_url":"https://api.github.com/users/jakubroztocil/followers","following_url":"https://api.github.com/users/jakubroztocil/following{/other_user}","gists_url":"https://api.github.com/users/jakubroztocil/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubroztocil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubroztocil/subscriptions","organizations_url":"https://api.github.com/users/jakubroztocil/orgs","repos_url":"https://api.github.com/users/jakubroztocil/repos","events_url":"https://api.github.com/users/jakubroztocil/events{/privacy}","received_events_url":"https://api.github.com/users/jakubroztocil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jakubroztocil/django-loginas","description":"\"Log in as user\" for the Django admin.","fork":true,"url":"https://api.github.com/repos/jakubroztocil/django-loginas","forks_url":"https://api.github.com/repos/jakubroztocil/django-loginas/forks","keys_url":"https://api.github.com/repos/jakubroztocil/django-loginas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jakubroztocil/django-loginas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jakubroztocil/django-loginas/teams","hooks_url":"https://api.github.com/repos/jakubroztocil/django-loginas/hooks","issue_events_url":"https://api.github.com/repos/jakubroztocil/django-loginas/issues/events{/number}","events_url":"https://api.github.com/repos/jakubroztocil/django-loginas/events","assignees_url":"https://api.github.com/repos/jakubroztocil/django-loginas/assignees{/user}","branches_url":"https://api.github.com/repos/jakubroztocil/django-loginas/branches{/branch}","tags_url":"https://api.github.com/repos/jakubroztocil/django-loginas/tags","blobs_url":"https://api.github.com/repos/jakubroztocil/django-loginas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jakubroztocil/django-loginas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jakubroztocil/django-loginas/git/refs{/sha}","trees_url":"https://api.github.com/repos/jakubroztocil/django-loginas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jakubroztocil/django-loginas/statuses/{sha}","languages_url":"https://api.github.com/repos/jakubroztocil/django-loginas/languages","stargazers_url":"https://api.github.com/repos/jakubroztocil/django-loginas/stargazers","contributors_url":"https://api.github.com/repos/jakubroztocil/django-loginas/contributors","subscribers_url":"https://api.github.com/repos/jakubroztocil/django-loginas/subscribers","subscription_url":"https://api.github.com/repos/jakubroztocil/django-loginas/subscription","commits_url":"https://api.github.com/repos/jakubroztocil/django-loginas/commits{/sha}","git_commits_url":"https://api.github.com/repos/jakubroztocil/django-loginas/git/commits{/sha}","comments_url":"https://api.github.com/repos/jakubroztocil/django-loginas/comments{/number}","issue_comment_url":"https://api.github.com/repos/jakubroztocil/django-loginas/issues/comments/{number}","contents_url":"https://api.github.com/repos/jakubroztocil/django-loginas/contents/{+path}","compare_url":"https://api.github.com/repos/jakubroztocil/django-loginas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jakubroztocil/django-loginas/merges","archive_url":"https://api.github.com/repos/jakubroztocil/django-loginas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jakubroztocil/django-loginas/downloads","issues_url":"https://api.github.com/repos/jakubroztocil/django-loginas/issues{/number}","pulls_url":"https://api.github.com/repos/jakubroztocil/django-loginas/pulls{/number}","milestones_url":"https://api.github.com/repos/jakubroztocil/django-loginas/milestones{/number}","notifications_url":"https://api.github.com/repos/jakubroztocil/django-loginas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jakubroztocil/django-loginas/labels{/name}","releases_url":"https://api.github.com/repos/jakubroztocil/django-loginas/releases{/id}","created_at":"2015-01-08T10:27:02Z","updated_at":"2015-01-10T10:45:10Z","pushed_at":"2015-01-10T10:45:09Z","git_url":"git://github.com/jakubroztocil/django-loginas.git","ssh_url":"git@github.com:jakubroztocil/django-loginas.git","clone_url":"https://github.com/jakubroztocil/django-loginas.git","svn_url":"https://github.com/jakubroztocil/django-loginas","homepage":null,"size":111,"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":"stochastic-technologies:master","ref":"master","sha":"d90866a538e46cc37c605ebfc9e2b9a11b7526c6","user":{"login":"stochastic-technologies","id":324282,"avatar_url":"https://avatars.githubusercontent.com/u/324282?v=3","gravatar_id":"","url":"https://api.github.com/users/stochastic-technologies","html_url":"https://github.com/stochastic-technologies","followers_url":"https://api.github.com/users/stochastic-technologies/followers","following_url":"https://api.github.com/users/stochastic-technologies/following{/other_user}","gists_url":"https://api.github.com/users/stochastic-technologies/gists{/gist_id}","starred_url":"https://api.github.com/users/stochastic-technologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stochastic-technologies/subscriptions","organizations_url":"https://api.github.com/users/stochastic-technologies/orgs","repos_url":"https://api.github.com/users/stochastic-technologies/repos","events_url":"https://api.github.com/users/stochastic-technologies/events{/privacy}","received_events_url":"https://api.github.com/users/stochastic-technologies/received_events","type":"Organization","site_admin":false},"repo":{"id":6147933,"name":"django-loginas","full_name":"stochastic-technologies/django-loginas","owner":{"login":"stochastic-technologies","id":324282,"avatar_url":"https://avatars.githubusercontent.com/u/324282?v=3","gravatar_id":"","url":"https://api.github.com/users/stochastic-technologies","html_url":"https://github.com/stochastic-technologies","followers_url":"https://api.github.com/users/stochastic-technologies/followers","following_url":"https://api.github.com/users/stochastic-technologies/following{/other_user}","gists_url":"https://api.github.com/users/stochastic-technologies/gists{/gist_id}","starred_url":"https://api.github.com/users/stochastic-technologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stochastic-technologies/subscriptions","organizations_url":"https://api.github.com/users/stochastic-technologies/orgs","repos_url":"https://api.github.com/users/stochastic-technologies/repos","events_url":"https://api.github.com/users/stochastic-technologies/events{/privacy}","received_events_url":"https://api.github.com/users/stochastic-technologies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stochastic-technologies/django-loginas","description":"\"Log in as user\" for the Django admin.","fork":false,"url":"https://api.github.com/repos/stochastic-technologies/django-loginas","forks_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/forks","keys_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/teams","hooks_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/hooks","issue_events_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/issues/events{/number}","events_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/events","assignees_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/assignees{/user}","branches_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/branches{/branch}","tags_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/tags","blobs_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/git/refs{/sha}","trees_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/statuses/{sha}","languages_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/languages","stargazers_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/stargazers","contributors_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/contributors","subscribers_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/subscribers","subscription_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/subscription","commits_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/commits{/sha}","git_commits_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/git/commits{/sha}","comments_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/comments{/number}","issue_comment_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/issues/comments/{number}","contents_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/contents/{+path}","compare_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/merges","archive_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/downloads","issues_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/issues{/number}","pulls_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls{/number}","milestones_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/milestones{/number}","notifications_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/labels{/name}","releases_url":"https://api.github.com/repos/stochastic-technologies/django-loginas/releases{/id}","created_at":"2012-10-09T21:15:15Z","updated_at":"2015-01-06T19:11:56Z","pushed_at":"2014-11-19T02:06:37Z","git_url":"git://github.com/stochastic-technologies/django-loginas.git","ssh_url":"git@github.com:stochastic-technologies/django-loginas.git","clone_url":"https://github.com/stochastic-technologies/django-loginas.git","svn_url":"https://github.com/stochastic-technologies/django-loginas","homepage":null,"size":337,"stargazers_count":47,"watchers_count":47,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":5,"forks":14,"open_issues":5,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/23"},"html":{"href":"https://github.com/stochastic-technologies/django-loginas/pull/23"},"issue":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/issues/23"},"comments":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/stochastic-technologies/django-loginas/statuses/26410658e98c8e8ee2a0107d88b78d97d1237be8"}}}}