{"action":"created","comment":{"url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/comments/59905470","id":59905470,"diff_hunk":"@@ -251,7 +251,7 @@ Example:\n def jwt_response_payload_handler(token, user=None, request=None):\n     return {\n         'token': token,\n-        'user': UserSerializer(user).data\n+        'user': UserSerializer(user,context={'request': request},).data","path":"docs/index.md","position":5,"original_position":5,"commit_id":"4a6f3dcc07d54d34d60b13a9103db9653129a6a4","original_commit_id":"4a6f3dcc07d54d34d60b13a9103db9653129a6a4","user":{"login":"shanemgrey","id":3431806,"avatar_url":"https://avatars.githubusercontent.com/u/3431806?v=3","gravatar_id":"","url":"https://api.github.com/users/shanemgrey","html_url":"https://github.com/shanemgrey","followers_url":"https://api.github.com/users/shanemgrey/followers","following_url":"https://api.github.com/users/shanemgrey/following{/other_user}","gists_url":"https://api.github.com/users/shanemgrey/gists{/gist_id}","starred_url":"https://api.github.com/users/shanemgrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanemgrey/subscriptions","organizations_url":"https://api.github.com/users/shanemgrey/orgs","repos_url":"https://api.github.com/users/shanemgrey/repos","events_url":"https://api.github.com/users/shanemgrey/events{/privacy}","received_events_url":"https://api.github.com/users/shanemgrey/received_events","type":"User","site_admin":false},"body":"Sorry.  I should have looked at the convention you were using for trailing comma before using my convention.  Thanks for taking the PR!","created_at":"2016-04-15T16:57:12Z","updated_at":"2016-04-15T16:57:12Z","html_url":"https://github.com/GetBlimp/django-rest-framework-jwt/pull/232#discussion_r59905470","pull_request_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/232","_links":{"self":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/comments/59905470"},"html":{"href":"https://github.com/GetBlimp/django-rest-framework-jwt/pull/232#discussion_r59905470"},"pull_request":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/232"}}},"pull_request":{"url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/232","id":66656448,"html_url":"https://github.com/GetBlimp/django-rest-framework-jwt/pull/232","diff_url":"https://github.com/GetBlimp/django-rest-framework-jwt/pull/232.diff","patch_url":"https://github.com/GetBlimp/django-rest-framework-jwt/pull/232.patch","issue_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/issues/232","number":232,"state":"open","locked":false,"title":"Add request context to call on UserSerializer ","user":{"login":"shanemgrey","id":3431806,"avatar_url":"https://avatars.githubusercontent.com/u/3431806?v=3","gravatar_id":"","url":"https://api.github.com/users/shanemgrey","html_url":"https://github.com/shanemgrey","followers_url":"https://api.github.com/users/shanemgrey/followers","following_url":"https://api.github.com/users/shanemgrey/following{/other_user}","gists_url":"https://api.github.com/users/shanemgrey/gists{/gist_id}","starred_url":"https://api.github.com/users/shanemgrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanemgrey/subscriptions","organizations_url":"https://api.github.com/users/shanemgrey/orgs","repos_url":"https://api.github.com/users/shanemgrey/repos","events_url":"https://api.github.com/users/shanemgrey/events{/privacy}","received_events_url":"https://api.github.com/users/shanemgrey/received_events","type":"User","site_admin":false},"body":"HypertextModelSerializer based serializers require the request context sent.  This updates the example in comments and docs to reflect that.  Completes Issue #230","created_at":"2016-04-15T14:58:58Z","updated_at":"2016-04-15T16:57:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"388cd9c42425ba29abd8bd7f0511203cd846dab6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/232/commits","review_comments_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/232/comments","review_comment_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/issues/232/comments","statuses_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/statuses/4a6f3dcc07d54d34d60b13a9103db9653129a6a4","head":{"label":"shanemgrey:master","ref":"master","sha":"4a6f3dcc07d54d34d60b13a9103db9653129a6a4","user":{"login":"shanemgrey","id":3431806,"avatar_url":"https://avatars.githubusercontent.com/u/3431806?v=3","gravatar_id":"","url":"https://api.github.com/users/shanemgrey","html_url":"https://github.com/shanemgrey","followers_url":"https://api.github.com/users/shanemgrey/followers","following_url":"https://api.github.com/users/shanemgrey/following{/other_user}","gists_url":"https://api.github.com/users/shanemgrey/gists{/gist_id}","starred_url":"https://api.github.com/users/shanemgrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanemgrey/subscriptions","organizations_url":"https://api.github.com/users/shanemgrey/orgs","repos_url":"https://api.github.com/users/shanemgrey/repos","events_url":"https://api.github.com/users/shanemgrey/events{/privacy}","received_events_url":"https://api.github.com/users/shanemgrey/received_events","type":"User","site_admin":false},"repo":{"id":55638721,"name":"django-rest-framework-jwt","full_name":"shanemgrey/django-rest-framework-jwt","owner":{"login":"shanemgrey","id":3431806,"avatar_url":"https://avatars.githubusercontent.com/u/3431806?v=3","gravatar_id":"","url":"https://api.github.com/users/shanemgrey","html_url":"https://github.com/shanemgrey","followers_url":"https://api.github.com/users/shanemgrey/followers","following_url":"https://api.github.com/users/shanemgrey/following{/other_user}","gists_url":"https://api.github.com/users/shanemgrey/gists{/gist_id}","starred_url":"https://api.github.com/users/shanemgrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanemgrey/subscriptions","organizations_url":"https://api.github.com/users/shanemgrey/orgs","repos_url":"https://api.github.com/users/shanemgrey/repos","events_url":"https://api.github.com/users/shanemgrey/events{/privacy}","received_events_url":"https://api.github.com/users/shanemgrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shanemgrey/django-rest-framework-jwt","description":"JSON Web Token Authentication support for Django REST Framework","fork":true,"url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt","forks_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/forks","keys_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/teams","hooks_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/hooks","issue_events_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/issues/events{/number}","events_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/events","assignees_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/assignees{/user}","branches_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/branches{/branch}","tags_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/tags","blobs_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/git/refs{/sha}","trees_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/statuses/{sha}","languages_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/languages","stargazers_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/stargazers","contributors_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/contributors","subscribers_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/subscribers","subscription_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/subscription","commits_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/commits{/sha}","git_commits_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/git/commits{/sha}","comments_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/comments{/number}","issue_comment_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/issues/comments{/number}","contents_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/contents/{+path}","compare_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/merges","archive_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/downloads","issues_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/issues{/number}","pulls_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/pulls{/number}","milestones_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/milestones{/number}","notifications_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/labels{/name}","releases_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/releases{/id}","deployments_url":"https://api.github.com/repos/shanemgrey/django-rest-framework-jwt/deployments","created_at":"2016-04-06T20:35:58Z","updated_at":"2016-04-06T20:35:59Z","pushed_at":"2016-04-15T14:52:56Z","git_url":"git://github.com/shanemgrey/django-rest-framework-jwt.git","ssh_url":"git@github.com:shanemgrey/django-rest-framework-jwt.git","clone_url":"https://github.com/shanemgrey/django-rest-framework-jwt.git","svn_url":"https://github.com/shanemgrey/django-rest-framework-jwt","homepage":"http://getblimp.github.io/django-rest-framework-jwt/","size":678,"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":"GetBlimp:master","ref":"master","sha":"4628b06bf5975ddba9a126248b65422aea837070","user":{"login":"GetBlimp","id":1227237,"avatar_url":"https://avatars.githubusercontent.com/u/1227237?v=3","gravatar_id":"","url":"https://api.github.com/users/GetBlimp","html_url":"https://github.com/GetBlimp","followers_url":"https://api.github.com/users/GetBlimp/followers","following_url":"https://api.github.com/users/GetBlimp/following{/other_user}","gists_url":"https://api.github.com/users/GetBlimp/gists{/gist_id}","starred_url":"https://api.github.com/users/GetBlimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetBlimp/subscriptions","organizations_url":"https://api.github.com/users/GetBlimp/orgs","repos_url":"https://api.github.com/users/GetBlimp/repos","events_url":"https://api.github.com/users/GetBlimp/events{/privacy}","received_events_url":"https://api.github.com/users/GetBlimp/received_events","type":"Organization","site_admin":false},"repo":{"id":15958352,"name":"django-rest-framework-jwt","full_name":"GetBlimp/django-rest-framework-jwt","owner":{"login":"GetBlimp","id":1227237,"avatar_url":"https://avatars.githubusercontent.com/u/1227237?v=3","gravatar_id":"","url":"https://api.github.com/users/GetBlimp","html_url":"https://github.com/GetBlimp","followers_url":"https://api.github.com/users/GetBlimp/followers","following_url":"https://api.github.com/users/GetBlimp/following{/other_user}","gists_url":"https://api.github.com/users/GetBlimp/gists{/gist_id}","starred_url":"https://api.github.com/users/GetBlimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetBlimp/subscriptions","organizations_url":"https://api.github.com/users/GetBlimp/orgs","repos_url":"https://api.github.com/users/GetBlimp/repos","events_url":"https://api.github.com/users/GetBlimp/events{/privacy}","received_events_url":"https://api.github.com/users/GetBlimp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GetBlimp/django-rest-framework-jwt","description":"JSON Web Token Authentication support for Django REST Framework","fork":false,"url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt","forks_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/forks","keys_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/teams","hooks_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/hooks","issue_events_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/issues/events{/number}","events_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/events","assignees_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/assignees{/user}","branches_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/branches{/branch}","tags_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/tags","blobs_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/git/refs{/sha}","trees_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/statuses/{sha}","languages_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/languages","stargazers_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/stargazers","contributors_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/contributors","subscribers_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/subscribers","subscription_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/subscription","commits_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/commits{/sha}","git_commits_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/git/commits{/sha}","comments_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/comments{/number}","issue_comment_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/issues/comments{/number}","contents_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/contents/{+path}","compare_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/merges","archive_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/downloads","issues_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/issues{/number}","pulls_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls{/number}","milestones_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/milestones{/number}","notifications_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/labels{/name}","releases_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/releases{/id}","deployments_url":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/deployments","created_at":"2014-01-16T04:54:06Z","updated_at":"2016-04-15T04:23:54Z","pushed_at":"2016-04-15T14:58:58Z","git_url":"git://github.com/GetBlimp/django-rest-framework-jwt.git","ssh_url":"git@github.com:GetBlimp/django-rest-framework-jwt.git","clone_url":"https://github.com/GetBlimp/django-rest-framework-jwt.git","svn_url":"https://github.com/GetBlimp/django-rest-framework-jwt","homepage":"http://getblimp.github.io/django-rest-framework-jwt/","size":909,"stargazers_count":622,"watchers_count":622,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":155,"mirror_url":null,"open_issues_count":33,"forks":155,"open_issues":33,"watchers":622,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/232"},"html":{"href":"https://github.com/GetBlimp/django-rest-framework-jwt/pull/232"},"issue":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/issues/232"},"comments":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/issues/232/comments"},"review_comments":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/232/comments"},"review_comment":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/pulls/232/commits"},"statuses":{"href":"https://api.github.com/repos/GetBlimp/django-rest-framework-jwt/statuses/4a6f3dcc07d54d34d60b13a9103db9653129a6a4"}}}}