{"action":"created","comment":{"url":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/comments/93835089","pull_request_review_id":14369312,"id":93835089,"diff_hunk":"@@ -0,0 +1,22 @@\n+from django.shortcuts import reverse\n+from django.forms.models import model_to_dict\n+\n+\n+def room_to_dict(room):\n+    model = model_to_dict(room)\n+    model['join'] = reverse('rooms_join', kwargs={'room_id': room.pk})\n+    model['is_locked'] = room.is_locked\n+    model['free_places'] = room.capacity - room.users.count()\n+    model.pop('users')","path":"rooms/serializers.py","position":10,"original_position":10,"commit_id":"c82abca3cd8f714f2cf20257e8e6a7c773c9e7cd","original_commit_id":"c82abca3cd8f714f2cf20257e8e6a7c773c9e7cd","user":{"login":"scoiatael","id":2892794,"avatar_url":"https://avatars.githubusercontent.com/u/2892794?v=3","gravatar_id":"","url":"https://api.github.com/users/scoiatael","html_url":"https://github.com/scoiatael","followers_url":"https://api.github.com/users/scoiatael/followers","following_url":"https://api.github.com/users/scoiatael/following{/other_user}","gists_url":"https://api.github.com/users/scoiatael/gists{/gist_id}","starred_url":"https://api.github.com/users/scoiatael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoiatael/subscriptions","organizations_url":"https://api.github.com/users/scoiatael/orgs","repos_url":"https://api.github.com/users/scoiatael/repos","events_url":"https://api.github.com/users/scoiatael/events{/privacy}","received_events_url":"https://api.github.com/users/scoiatael/received_events","type":"User","site_admin":false},"body":"To avoid trying to serialize QuerySet","created_at":"2016-12-25T23:43:34Z","updated_at":"2016-12-25T23:43:34Z","html_url":"https://github.com/scoiatael/zosia16-site/pull/38#discussion_r93835089","pull_request_url":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/comments/93835089"},"html":{"href":"https://github.com/scoiatael/zosia16-site/pull/38#discussion_r93835089"},"pull_request":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/38","id":99313488,"html_url":"https://github.com/scoiatael/zosia16-site/pull/38","diff_url":"https://github.com/scoiatael/zosia16-site/pull/38.diff","patch_url":"https://github.com/scoiatael/zosia16-site/pull/38.patch","issue_url":"https://api.github.com/repos/scoiatael/zosia16-site/issues/38","number":38,"state":"open","locked":false,"title":"Lczaplinski/feature/rooming view","user":{"login":"scoiatael","id":2892794,"avatar_url":"https://avatars.githubusercontent.com/u/2892794?v=3","gravatar_id":"","url":"https://api.github.com/users/scoiatael","html_url":"https://github.com/scoiatael","followers_url":"https://api.github.com/users/scoiatael/followers","following_url":"https://api.github.com/users/scoiatael/following{/other_user}","gists_url":"https://api.github.com/users/scoiatael/gists{/gist_id}","starred_url":"https://api.github.com/users/scoiatael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoiatael/subscriptions","organizations_url":"https://api.github.com/users/scoiatael/orgs","repos_url":"https://api.github.com/users/scoiatael/repos","events_url":"https://api.github.com/users/scoiatael/events{/privacy}","received_events_url":"https://api.github.com/users/scoiatael/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-25T00:32:29Z","updated_at":"2016-12-25T23:43:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3fca5aabc4bb495c5f84c725dbd9ab607ee499b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/38/commits","review_comments_url":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/38/comments","review_comment_url":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scoiatael/zosia16-site/issues/38/comments","statuses_url":"https://api.github.com/repos/scoiatael/zosia16-site/statuses/c82abca3cd8f714f2cf20257e8e6a7c773c9e7cd","head":{"label":"scoiatael:lczaplinski/feature/rooming-view","ref":"lczaplinski/feature/rooming-view","sha":"c82abca3cd8f714f2cf20257e8e6a7c773c9e7cd","user":{"login":"scoiatael","id":2892794,"avatar_url":"https://avatars.githubusercontent.com/u/2892794?v=3","gravatar_id":"","url":"https://api.github.com/users/scoiatael","html_url":"https://github.com/scoiatael","followers_url":"https://api.github.com/users/scoiatael/followers","following_url":"https://api.github.com/users/scoiatael/following{/other_user}","gists_url":"https://api.github.com/users/scoiatael/gists{/gist_id}","starred_url":"https://api.github.com/users/scoiatael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoiatael/subscriptions","organizations_url":"https://api.github.com/users/scoiatael/orgs","repos_url":"https://api.github.com/users/scoiatael/repos","events_url":"https://api.github.com/users/scoiatael/events{/privacy}","received_events_url":"https://api.github.com/users/scoiatael/received_events","type":"User","site_admin":false},"repo":{"id":71065400,"name":"zosia16-site","full_name":"scoiatael/zosia16-site","owner":{"login":"scoiatael","id":2892794,"avatar_url":"https://avatars.githubusercontent.com/u/2892794?v=3","gravatar_id":"","url":"https://api.github.com/users/scoiatael","html_url":"https://github.com/scoiatael","followers_url":"https://api.github.com/users/scoiatael/followers","following_url":"https://api.github.com/users/scoiatael/following{/other_user}","gists_url":"https://api.github.com/users/scoiatael/gists{/gist_id}","starred_url":"https://api.github.com/users/scoiatael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoiatael/subscriptions","organizations_url":"https://api.github.com/users/scoiatael/orgs","repos_url":"https://api.github.com/users/scoiatael/repos","events_url":"https://api.github.com/users/scoiatael/events{/privacy}","received_events_url":"https://api.github.com/users/scoiatael/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scoiatael/zosia16-site","description":"Django 1.10 version of ZOSIA registration page - v2016 edition.","fork":true,"url":"https://api.github.com/repos/scoiatael/zosia16-site","forks_url":"https://api.github.com/repos/scoiatael/zosia16-site/forks","keys_url":"https://api.github.com/repos/scoiatael/zosia16-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scoiatael/zosia16-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scoiatael/zosia16-site/teams","hooks_url":"https://api.github.com/repos/scoiatael/zosia16-site/hooks","issue_events_url":"https://api.github.com/repos/scoiatael/zosia16-site/issues/events{/number}","events_url":"https://api.github.com/repos/scoiatael/zosia16-site/events","assignees_url":"https://api.github.com/repos/scoiatael/zosia16-site/assignees{/user}","branches_url":"https://api.github.com/repos/scoiatael/zosia16-site/branches{/branch}","tags_url":"https://api.github.com/repos/scoiatael/zosia16-site/tags","blobs_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scoiatael/zosia16-site/statuses/{sha}","languages_url":"https://api.github.com/repos/scoiatael/zosia16-site/languages","stargazers_url":"https://api.github.com/repos/scoiatael/zosia16-site/stargazers","contributors_url":"https://api.github.com/repos/scoiatael/zosia16-site/contributors","subscribers_url":"https://api.github.com/repos/scoiatael/zosia16-site/subscribers","subscription_url":"https://api.github.com/repos/scoiatael/zosia16-site/subscription","commits_url":"https://api.github.com/repos/scoiatael/zosia16-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/scoiatael/zosia16-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/scoiatael/zosia16-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/scoiatael/zosia16-site/contents/{+path}","compare_url":"https://api.github.com/repos/scoiatael/zosia16-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scoiatael/zosia16-site/merges","archive_url":"https://api.github.com/repos/scoiatael/zosia16-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scoiatael/zosia16-site/downloads","issues_url":"https://api.github.com/repos/scoiatael/zosia16-site/issues{/number}","pulls_url":"https://api.github.com/repos/scoiatael/zosia16-site/pulls{/number}","milestones_url":"https://api.github.com/repos/scoiatael/zosia16-site/milestones{/number}","notifications_url":"https://api.github.com/repos/scoiatael/zosia16-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scoiatael/zosia16-site/labels{/name}","releases_url":"https://api.github.com/repos/scoiatael/zosia16-site/releases{/id}","deployments_url":"https://api.github.com/repos/scoiatael/zosia16-site/deployments","created_at":"2016-10-16T17:20:42Z","updated_at":"2016-12-22T17:24:58Z","pushed_at":"2016-12-25T20:30:09Z","git_url":"git://github.com/scoiatael/zosia16-site.git","ssh_url":"git@github.com:scoiatael/zosia16-site.git","clone_url":"https://github.com/scoiatael/zosia16-site.git","svn_url":"https://github.com/scoiatael/zosia16-site","homepage":null,"size":22874,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":24,"forks":1,"open_issues":24,"watchers":0,"default_branch":"master"}},"base":{"label":"scoiatael:master","ref":"master","sha":"f0ae60d42fbc4bf87065b90ba273d017cb26a74a","user":{"login":"scoiatael","id":2892794,"avatar_url":"https://avatars.githubusercontent.com/u/2892794?v=3","gravatar_id":"","url":"https://api.github.com/users/scoiatael","html_url":"https://github.com/scoiatael","followers_url":"https://api.github.com/users/scoiatael/followers","following_url":"https://api.github.com/users/scoiatael/following{/other_user}","gists_url":"https://api.github.com/users/scoiatael/gists{/gist_id}","starred_url":"https://api.github.com/users/scoiatael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoiatael/subscriptions","organizations_url":"https://api.github.com/users/scoiatael/orgs","repos_url":"https://api.github.com/users/scoiatael/repos","events_url":"https://api.github.com/users/scoiatael/events{/privacy}","received_events_url":"https://api.github.com/users/scoiatael/received_events","type":"User","site_admin":false},"repo":{"id":71065400,"name":"zosia16-site","full_name":"scoiatael/zosia16-site","owner":{"login":"scoiatael","id":2892794,"avatar_url":"https://avatars.githubusercontent.com/u/2892794?v=3","gravatar_id":"","url":"https://api.github.com/users/scoiatael","html_url":"https://github.com/scoiatael","followers_url":"https://api.github.com/users/scoiatael/followers","following_url":"https://api.github.com/users/scoiatael/following{/other_user}","gists_url":"https://api.github.com/users/scoiatael/gists{/gist_id}","starred_url":"https://api.github.com/users/scoiatael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoiatael/subscriptions","organizations_url":"https://api.github.com/users/scoiatael/orgs","repos_url":"https://api.github.com/users/scoiatael/repos","events_url":"https://api.github.com/users/scoiatael/events{/privacy}","received_events_url":"https://api.github.com/users/scoiatael/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scoiatael/zosia16-site","description":"Django 1.10 version of ZOSIA registration page - v2016 edition.","fork":true,"url":"https://api.github.com/repos/scoiatael/zosia16-site","forks_url":"https://api.github.com/repos/scoiatael/zosia16-site/forks","keys_url":"https://api.github.com/repos/scoiatael/zosia16-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scoiatael/zosia16-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scoiatael/zosia16-site/teams","hooks_url":"https://api.github.com/repos/scoiatael/zosia16-site/hooks","issue_events_url":"https://api.github.com/repos/scoiatael/zosia16-site/issues/events{/number}","events_url":"https://api.github.com/repos/scoiatael/zosia16-site/events","assignees_url":"https://api.github.com/repos/scoiatael/zosia16-site/assignees{/user}","branches_url":"https://api.github.com/repos/scoiatael/zosia16-site/branches{/branch}","tags_url":"https://api.github.com/repos/scoiatael/zosia16-site/tags","blobs_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scoiatael/zosia16-site/statuses/{sha}","languages_url":"https://api.github.com/repos/scoiatael/zosia16-site/languages","stargazers_url":"https://api.github.com/repos/scoiatael/zosia16-site/stargazers","contributors_url":"https://api.github.com/repos/scoiatael/zosia16-site/contributors","subscribers_url":"https://api.github.com/repos/scoiatael/zosia16-site/subscribers","subscription_url":"https://api.github.com/repos/scoiatael/zosia16-site/subscription","commits_url":"https://api.github.com/repos/scoiatael/zosia16-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/scoiatael/zosia16-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/scoiatael/zosia16-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/scoiatael/zosia16-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/scoiatael/zosia16-site/contents/{+path}","compare_url":"https://api.github.com/repos/scoiatael/zosia16-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scoiatael/zosia16-site/merges","archive_url":"https://api.github.com/repos/scoiatael/zosia16-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scoiatael/zosia16-site/downloads","issues_url":"https://api.github.com/repos/scoiatael/zosia16-site/issues{/number}","pulls_url":"https://api.github.com/repos/scoiatael/zosia16-site/pulls{/number}","milestones_url":"https://api.github.com/repos/scoiatael/zosia16-site/milestones{/number}","notifications_url":"https://api.github.com/repos/scoiatael/zosia16-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scoiatael/zosia16-site/labels{/name}","releases_url":"https://api.github.com/repos/scoiatael/zosia16-site/releases{/id}","deployments_url":"https://api.github.com/repos/scoiatael/zosia16-site/deployments","created_at":"2016-10-16T17:20:42Z","updated_at":"2016-12-22T17:24:58Z","pushed_at":"2016-12-25T20:30:09Z","git_url":"git://github.com/scoiatael/zosia16-site.git","ssh_url":"git@github.com:scoiatael/zosia16-site.git","clone_url":"https://github.com/scoiatael/zosia16-site.git","svn_url":"https://github.com/scoiatael/zosia16-site","homepage":null,"size":22874,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":24,"forks":1,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/38"},"html":{"href":"https://github.com/scoiatael/zosia16-site/pull/38"},"issue":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/issues/38"},"comments":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/scoiatael/zosia16-site/statuses/c82abca3cd8f714f2cf20257e8e6a7c773c9e7cd"}}}}
{"actor":{"display_login":"scoiatael"}}