{"action":"opened","number":119,"pull_request":{"url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/119","id":48949914,"html_url":"https://github.com/Tivix/django-rest-auth/pull/119","diff_url":"https://github.com/Tivix/django-rest-auth/pull/119.diff","patch_url":"https://github.com/Tivix/django-rest-auth/pull/119.patch","issue_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/119","number":119,"state":"open","locked":false,"title":"Bypass AssertionErrors on nested Hyperlinked fields","user":{"login":"fleischie","id":2211050,"avatar_url":"https://avatars.githubusercontent.com/u/2211050?v=3","gravatar_id":"","url":"https://api.github.com/users/fleischie","html_url":"https://github.com/fleischie","followers_url":"https://api.github.com/users/fleischie/followers","following_url":"https://api.github.com/users/fleischie/following{/other_user}","gists_url":"https://api.github.com/users/fleischie/gists{/gist_id}","starred_url":"https://api.github.com/users/fleischie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleischie/subscriptions","organizations_url":"https://api.github.com/users/fleischie/orgs","repos_url":"https://api.github.com/users/fleischie/repos","events_url":"https://api.github.com/users/fleischie/events{/privacy}","received_events_url":"https://api.github.com/users/fleischie/received_events","type":"User","site_admin":false},"body":"Send request as context data to the UserDetailsSerializer class, when\r\nsigning up. This way nested Hyperlinked serializer fields can be\r\ncorrectly resolved.\r\n\r\nThe problem occurs, when setting up a custom USER_DETAILS_SERIALIZER class, which contains a nested model with hyperlinked serializer fields (for example HyperlinkedIdentityField). These need a context to be able to build the API links correctly.\r\n\r\nAdding the request as the context fixes the AssertionError, which occurs in the described situation without the context. The error message suggests this fix, which is now introduced to the appropriate location. :)","created_at":"2015-10-28T00:09:24Z","updated_at":"2015-10-28T00:09:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/119/commits","review_comments_url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/119/comments","review_comment_url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/119/comments","statuses_url":"https://api.github.com/repos/Tivix/django-rest-auth/statuses/f1858e4ce44bf5fa3b4f880595d7bc1c254cda78","head":{"label":"fleischie:master","ref":"master","sha":"f1858e4ce44bf5fa3b4f880595d7bc1c254cda78","user":{"login":"fleischie","id":2211050,"avatar_url":"https://avatars.githubusercontent.com/u/2211050?v=3","gravatar_id":"","url":"https://api.github.com/users/fleischie","html_url":"https://github.com/fleischie","followers_url":"https://api.github.com/users/fleischie/followers","following_url":"https://api.github.com/users/fleischie/following{/other_user}","gists_url":"https://api.github.com/users/fleischie/gists{/gist_id}","starred_url":"https://api.github.com/users/fleischie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleischie/subscriptions","organizations_url":"https://api.github.com/users/fleischie/orgs","repos_url":"https://api.github.com/users/fleischie/repos","events_url":"https://api.github.com/users/fleischie/events{/privacy}","received_events_url":"https://api.github.com/users/fleischie/received_events","type":"User","site_admin":false},"repo":{"id":45074990,"name":"django-rest-auth","full_name":"fleischie/django-rest-auth","owner":{"login":"fleischie","id":2211050,"avatar_url":"https://avatars.githubusercontent.com/u/2211050?v=3","gravatar_id":"","url":"https://api.github.com/users/fleischie","html_url":"https://github.com/fleischie","followers_url":"https://api.github.com/users/fleischie/followers","following_url":"https://api.github.com/users/fleischie/following{/other_user}","gists_url":"https://api.github.com/users/fleischie/gists{/gist_id}","starred_url":"https://api.github.com/users/fleischie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleischie/subscriptions","organizations_url":"https://api.github.com/users/fleischie/orgs","repos_url":"https://api.github.com/users/fleischie/repos","events_url":"https://api.github.com/users/fleischie/events{/privacy}","received_events_url":"https://api.github.com/users/fleischie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fleischie/django-rest-auth","description":"This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)","fork":true,"url":"https://api.github.com/repos/fleischie/django-rest-auth","forks_url":"https://api.github.com/repos/fleischie/django-rest-auth/forks","keys_url":"https://api.github.com/repos/fleischie/django-rest-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fleischie/django-rest-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fleischie/django-rest-auth/teams","hooks_url":"https://api.github.com/repos/fleischie/django-rest-auth/hooks","issue_events_url":"https://api.github.com/repos/fleischie/django-rest-auth/issues/events{/number}","events_url":"https://api.github.com/repos/fleischie/django-rest-auth/events","assignees_url":"https://api.github.com/repos/fleischie/django-rest-auth/assignees{/user}","branches_url":"https://api.github.com/repos/fleischie/django-rest-auth/branches{/branch}","tags_url":"https://api.github.com/repos/fleischie/django-rest-auth/tags","blobs_url":"https://api.github.com/repos/fleischie/django-rest-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fleischie/django-rest-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fleischie/django-rest-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/fleischie/django-rest-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fleischie/django-rest-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/fleischie/django-rest-auth/languages","stargazers_url":"https://api.github.com/repos/fleischie/django-rest-auth/stargazers","contributors_url":"https://api.github.com/repos/fleischie/django-rest-auth/contributors","subscribers_url":"https://api.github.com/repos/fleischie/django-rest-auth/subscribers","subscription_url":"https://api.github.com/repos/fleischie/django-rest-auth/subscription","commits_url":"https://api.github.com/repos/fleischie/django-rest-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/fleischie/django-rest-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/fleischie/django-rest-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/fleischie/django-rest-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/fleischie/django-rest-auth/contents/{+path}","compare_url":"https://api.github.com/repos/fleischie/django-rest-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fleischie/django-rest-auth/merges","archive_url":"https://api.github.com/repos/fleischie/django-rest-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fleischie/django-rest-auth/downloads","issues_url":"https://api.github.com/repos/fleischie/django-rest-auth/issues{/number}","pulls_url":"https://api.github.com/repos/fleischie/django-rest-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/fleischie/django-rest-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/fleischie/django-rest-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fleischie/django-rest-auth/labels{/name}","releases_url":"https://api.github.com/repos/fleischie/django-rest-auth/releases{/id}","created_at":"2015-10-27T22:50:25Z","updated_at":"2015-10-27T22:50:25Z","pushed_at":"2015-10-27T23:56:44Z","git_url":"git://github.com/fleischie/django-rest-auth.git","ssh_url":"git@github.com:fleischie/django-rest-auth.git","clone_url":"https://github.com/fleischie/django-rest-auth.git","svn_url":"https://github.com/fleischie/django-rest-auth","homepage":"www.tivix.com","size":991,"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":"Tivix:master","ref":"master","sha":"ba5edbaf62a3a94169c2be2023438c229561e7e7","user":{"login":"Tivix","id":610135,"avatar_url":"https://avatars.githubusercontent.com/u/610135?v=3","gravatar_id":"","url":"https://api.github.com/users/Tivix","html_url":"https://github.com/Tivix","followers_url":"https://api.github.com/users/Tivix/followers","following_url":"https://api.github.com/users/Tivix/following{/other_user}","gists_url":"https://api.github.com/users/Tivix/gists{/gist_id}","starred_url":"https://api.github.com/users/Tivix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tivix/subscriptions","organizations_url":"https://api.github.com/users/Tivix/orgs","repos_url":"https://api.github.com/users/Tivix/repos","events_url":"https://api.github.com/users/Tivix/events{/privacy}","received_events_url":"https://api.github.com/users/Tivix/received_events","type":"Organization","site_admin":false},"repo":{"id":19325336,"name":"django-rest-auth","full_name":"Tivix/django-rest-auth","owner":{"login":"Tivix","id":610135,"avatar_url":"https://avatars.githubusercontent.com/u/610135?v=3","gravatar_id":"","url":"https://api.github.com/users/Tivix","html_url":"https://github.com/Tivix","followers_url":"https://api.github.com/users/Tivix/followers","following_url":"https://api.github.com/users/Tivix/following{/other_user}","gists_url":"https://api.github.com/users/Tivix/gists{/gist_id}","starred_url":"https://api.github.com/users/Tivix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tivix/subscriptions","organizations_url":"https://api.github.com/users/Tivix/orgs","repos_url":"https://api.github.com/users/Tivix/repos","events_url":"https://api.github.com/users/Tivix/events{/privacy}","received_events_url":"https://api.github.com/users/Tivix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tivix/django-rest-auth","description":"This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)","fork":false,"url":"https://api.github.com/repos/Tivix/django-rest-auth","forks_url":"https://api.github.com/repos/Tivix/django-rest-auth/forks","keys_url":"https://api.github.com/repos/Tivix/django-rest-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tivix/django-rest-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tivix/django-rest-auth/teams","hooks_url":"https://api.github.com/repos/Tivix/django-rest-auth/hooks","issue_events_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/events{/number}","events_url":"https://api.github.com/repos/Tivix/django-rest-auth/events","assignees_url":"https://api.github.com/repos/Tivix/django-rest-auth/assignees{/user}","branches_url":"https://api.github.com/repos/Tivix/django-rest-auth/branches{/branch}","tags_url":"https://api.github.com/repos/Tivix/django-rest-auth/tags","blobs_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tivix/django-rest-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/Tivix/django-rest-auth/languages","stargazers_url":"https://api.github.com/repos/Tivix/django-rest-auth/stargazers","contributors_url":"https://api.github.com/repos/Tivix/django-rest-auth/contributors","subscribers_url":"https://api.github.com/repos/Tivix/django-rest-auth/subscribers","subscription_url":"https://api.github.com/repos/Tivix/django-rest-auth/subscription","commits_url":"https://api.github.com/repos/Tivix/django-rest-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tivix/django-rest-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tivix/django-rest-auth/contents/{+path}","compare_url":"https://api.github.com/repos/Tivix/django-rest-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tivix/django-rest-auth/merges","archive_url":"https://api.github.com/repos/Tivix/django-rest-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tivix/django-rest-auth/downloads","issues_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues{/number}","pulls_url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/Tivix/django-rest-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/Tivix/django-rest-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tivix/django-rest-auth/labels{/name}","releases_url":"https://api.github.com/repos/Tivix/django-rest-auth/releases{/id}","created_at":"2014-04-30T19:50:41Z","updated_at":"2015-10-27T00:52:07Z","pushed_at":"2015-10-26T13:15:07Z","git_url":"git://github.com/Tivix/django-rest-auth.git","ssh_url":"git@github.com:Tivix/django-rest-auth.git","clone_url":"https://github.com/Tivix/django-rest-auth.git","svn_url":"https://github.com/Tivix/django-rest-auth","homepage":"www.tivix.com","size":991,"stargazers_count":363,"watchers_count":363,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":119,"mirror_url":null,"open_issues_count":30,"forks":119,"open_issues":30,"watchers":363,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/119"},"html":{"href":"https://github.com/Tivix/django-rest-auth/pull/119"},"issue":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/issues/119"},"comments":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/statuses/f1858e4ce44bf5fa3b4f880595d7bc1c254cda78"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}