{"action":"created","comment":{"url":"https://api.github.com/repos/channelfix/todbackend/pulls/comments/180291654","pull_request_review_id":110685732,"id":180291654,"diff_hunk":"@@ -0,0 +1,23 @@\n+# -*- coding: utf-8 -*-\n+from __future__ import unicode_literals\n+\n+from django.contrib.auth.models import User\n+\n+from rest_framework.decorators import detail_route\n+from rest_framework.response import Response\n+from rest_framework import viewsets\n+from users.serializers import UserSerializer\n+\n+# Create your views here.\n+\n+\n+class UserView(viewsets.ModelViewSet):\n+    queryset = User.objects.all()\n+    serializer_class = UserSerializer\n+\n+    @detail_route(methods=['get'], url_path='get-name')\n+    def get_name(self, request, pk=None):\n+        instance = self.get_object()\n+        serializer = UserSerializer(instance)\n+        data = \"\" + serializer.data['first_name'] + \" \" + serializer.data['last_name']","path":"tutorialondemand/users/views.py","position":22,"original_position":22,"commit_id":"a736d7fbca12225315f2dfd6a842bd9a4f6712e6","original_commit_id":"a736d7fbca12225315f2dfd6a842bd9a4f6712e6","user":{"login":"kevcal69","id":5195382,"avatar_url":"https://avatars0.githubusercontent.com/u/5195382?v=4","gravatar_id":"","url":"https://api.github.com/users/kevcal69","html_url":"https://github.com/kevcal69","followers_url":"https://api.github.com/users/kevcal69/followers","following_url":"https://api.github.com/users/kevcal69/following{/other_user}","gists_url":"https://api.github.com/users/kevcal69/gists{/gist_id}","starred_url":"https://api.github.com/users/kevcal69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevcal69/subscriptions","organizations_url":"https://api.github.com/users/kevcal69/orgs","repos_url":"https://api.github.com/users/kevcal69/repos","events_url":"https://api.github.com/users/kevcal69/events{/privacy}","received_events_url":"https://api.github.com/users/kevcal69/received_events","type":"User","site_admin":false},"body":"@pulmonesxavier use string format instead. ","created_at":"2018-04-10T04:01:08Z","updated_at":"2018-04-10T04:01:16Z","html_url":"https://github.com/channelfix/todbackend/pull/2#discussion_r180291654","pull_request_url":"https://api.github.com/repos/channelfix/todbackend/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/channelfix/todbackend/pulls/comments/180291654"},"html":{"href":"https://github.com/channelfix/todbackend/pull/2#discussion_r180291654"},"pull_request":{"href":"https://api.github.com/repos/channelfix/todbackend/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/channelfix/todbackend/pulls/2","id":180170017,"html_url":"https://github.com/channelfix/todbackend/pull/2","diff_url":"https://github.com/channelfix/todbackend/pull/2.diff","patch_url":"https://github.com/channelfix/todbackend/pull/2.patch","issue_url":"https://api.github.com/repos/channelfix/todbackend/issues/2","number":2,"state":"open","locked":false,"title":"Removed the applications questions, tutors and students. Added the ap…","user":{"login":"pulmonesxavier","id":23621698,"avatar_url":"https://avatars2.githubusercontent.com/u/23621698?v=4","gravatar_id":"","url":"https://api.github.com/users/pulmonesxavier","html_url":"https://github.com/pulmonesxavier","followers_url":"https://api.github.com/users/pulmonesxavier/followers","following_url":"https://api.github.com/users/pulmonesxavier/following{/other_user}","gists_url":"https://api.github.com/users/pulmonesxavier/gists{/gist_id}","starred_url":"https://api.github.com/users/pulmonesxavier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulmonesxavier/subscriptions","organizations_url":"https://api.github.com/users/pulmonesxavier/orgs","repos_url":"https://api.github.com/users/pulmonesxavier/repos","events_url":"https://api.github.com/users/pulmonesxavier/events{/privacy}","received_events_url":"https://api.github.com/users/pulmonesxavier/received_events","type":"User","site_admin":false},"body":"Removed the applications questions, tutors and students. Added the applications requestpool and rooms.","created_at":"2018-04-08T17:17:21Z","updated_at":"2018-04-10T04:01:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3205757c13ae7bc7828af53cdca0dc07b9535389","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/channelfix/todbackend/pulls/2/commits","review_comments_url":"https://api.github.com/repos/channelfix/todbackend/pulls/2/comments","review_comment_url":"https://api.github.com/repos/channelfix/todbackend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/channelfix/todbackend/issues/2/comments","statuses_url":"https://api.github.com/repos/channelfix/todbackend/statuses/a736d7fbca12225315f2dfd6a842bd9a4f6712e6","head":{"label":"channelfix:1.1","ref":"1.1","sha":"a736d7fbca12225315f2dfd6a842bd9a4f6712e6","user":{"login":"channelfix","id":19835393,"avatar_url":"https://avatars2.githubusercontent.com/u/19835393?v=4","gravatar_id":"","url":"https://api.github.com/users/channelfix","html_url":"https://github.com/channelfix","followers_url":"https://api.github.com/users/channelfix/followers","following_url":"https://api.github.com/users/channelfix/following{/other_user}","gists_url":"https://api.github.com/users/channelfix/gists{/gist_id}","starred_url":"https://api.github.com/users/channelfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/channelfix/subscriptions","organizations_url":"https://api.github.com/users/channelfix/orgs","repos_url":"https://api.github.com/users/channelfix/repos","events_url":"https://api.github.com/users/channelfix/events{/privacy}","received_events_url":"https://api.github.com/users/channelfix/received_events","type":"Organization","site_admin":false},"repo":{"id":123922181,"name":"todbackend","full_name":"channelfix/todbackend","owner":{"login":"channelfix","id":19835393,"avatar_url":"https://avatars2.githubusercontent.com/u/19835393?v=4","gravatar_id":"","url":"https://api.github.com/users/channelfix","html_url":"https://github.com/channelfix","followers_url":"https://api.github.com/users/channelfix/followers","following_url":"https://api.github.com/users/channelfix/following{/other_user}","gists_url":"https://api.github.com/users/channelfix/gists{/gist_id}","starred_url":"https://api.github.com/users/channelfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/channelfix/subscriptions","organizations_url":"https://api.github.com/users/channelfix/orgs","repos_url":"https://api.github.com/users/channelfix/repos","events_url":"https://api.github.com/users/channelfix/events{/privacy}","received_events_url":"https://api.github.com/users/channelfix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/channelfix/todbackend","description":"Backend Repo for Tutoriial on Demand","fork":false,"url":"https://api.github.com/repos/channelfix/todbackend","forks_url":"https://api.github.com/repos/channelfix/todbackend/forks","keys_url":"https://api.github.com/repos/channelfix/todbackend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/channelfix/todbackend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/channelfix/todbackend/teams","hooks_url":"https://api.github.com/repos/channelfix/todbackend/hooks","issue_events_url":"https://api.github.com/repos/channelfix/todbackend/issues/events{/number}","events_url":"https://api.github.com/repos/channelfix/todbackend/events","assignees_url":"https://api.github.com/repos/channelfix/todbackend/assignees{/user}","branches_url":"https://api.github.com/repos/channelfix/todbackend/branches{/branch}","tags_url":"https://api.github.com/repos/channelfix/todbackend/tags","blobs_url":"https://api.github.com/repos/channelfix/todbackend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/channelfix/todbackend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/channelfix/todbackend/git/refs{/sha}","trees_url":"https://api.github.com/repos/channelfix/todbackend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/channelfix/todbackend/statuses/{sha}","languages_url":"https://api.github.com/repos/channelfix/todbackend/languages","stargazers_url":"https://api.github.com/repos/channelfix/todbackend/stargazers","contributors_url":"https://api.github.com/repos/channelfix/todbackend/contributors","subscribers_url":"https://api.github.com/repos/channelfix/todbackend/subscribers","subscription_url":"https://api.github.com/repos/channelfix/todbackend/subscription","commits_url":"https://api.github.com/repos/channelfix/todbackend/commits{/sha}","git_commits_url":"https://api.github.com/repos/channelfix/todbackend/git/commits{/sha}","comments_url":"https://api.github.com/repos/channelfix/todbackend/comments{/number}","issue_comment_url":"https://api.github.com/repos/channelfix/todbackend/issues/comments{/number}","contents_url":"https://api.github.com/repos/channelfix/todbackend/contents/{+path}","compare_url":"https://api.github.com/repos/channelfix/todbackend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/channelfix/todbackend/merges","archive_url":"https://api.github.com/repos/channelfix/todbackend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/channelfix/todbackend/downloads","issues_url":"https://api.github.com/repos/channelfix/todbackend/issues{/number}","pulls_url":"https://api.github.com/repos/channelfix/todbackend/pulls{/number}","milestones_url":"https://api.github.com/repos/channelfix/todbackend/milestones{/number}","notifications_url":"https://api.github.com/repos/channelfix/todbackend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/channelfix/todbackend/labels{/name}","releases_url":"https://api.github.com/repos/channelfix/todbackend/releases{/id}","deployments_url":"https://api.github.com/repos/channelfix/todbackend/deployments","created_at":"2018-03-05T13:17:38Z","updated_at":"2018-03-12T11:21:39Z","pushed_at":"2018-04-09T15:18:52Z","git_url":"git://github.com/channelfix/todbackend.git","ssh_url":"git@github.com:channelfix/todbackend.git","clone_url":"https://github.com/channelfix/todbackend.git","svn_url":"https://github.com/channelfix/todbackend","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"channelfix:development","ref":"development","sha":"b6b9741769c29c0db19eba905f9071420c7809bb","user":{"login":"channelfix","id":19835393,"avatar_url":"https://avatars2.githubusercontent.com/u/19835393?v=4","gravatar_id":"","url":"https://api.github.com/users/channelfix","html_url":"https://github.com/channelfix","followers_url":"https://api.github.com/users/channelfix/followers","following_url":"https://api.github.com/users/channelfix/following{/other_user}","gists_url":"https://api.github.com/users/channelfix/gists{/gist_id}","starred_url":"https://api.github.com/users/channelfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/channelfix/subscriptions","organizations_url":"https://api.github.com/users/channelfix/orgs","repos_url":"https://api.github.com/users/channelfix/repos","events_url":"https://api.github.com/users/channelfix/events{/privacy}","received_events_url":"https://api.github.com/users/channelfix/received_events","type":"Organization","site_admin":false},"repo":{"id":123922181,"name":"todbackend","full_name":"channelfix/todbackend","owner":{"login":"channelfix","id":19835393,"avatar_url":"https://avatars2.githubusercontent.com/u/19835393?v=4","gravatar_id":"","url":"https://api.github.com/users/channelfix","html_url":"https://github.com/channelfix","followers_url":"https://api.github.com/users/channelfix/followers","following_url":"https://api.github.com/users/channelfix/following{/other_user}","gists_url":"https://api.github.com/users/channelfix/gists{/gist_id}","starred_url":"https://api.github.com/users/channelfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/channelfix/subscriptions","organizations_url":"https://api.github.com/users/channelfix/orgs","repos_url":"https://api.github.com/users/channelfix/repos","events_url":"https://api.github.com/users/channelfix/events{/privacy}","received_events_url":"https://api.github.com/users/channelfix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/channelfix/todbackend","description":"Backend Repo for Tutoriial on Demand","fork":false,"url":"https://api.github.com/repos/channelfix/todbackend","forks_url":"https://api.github.com/repos/channelfix/todbackend/forks","keys_url":"https://api.github.com/repos/channelfix/todbackend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/channelfix/todbackend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/channelfix/todbackend/teams","hooks_url":"https://api.github.com/repos/channelfix/todbackend/hooks","issue_events_url":"https://api.github.com/repos/channelfix/todbackend/issues/events{/number}","events_url":"https://api.github.com/repos/channelfix/todbackend/events","assignees_url":"https://api.github.com/repos/channelfix/todbackend/assignees{/user}","branches_url":"https://api.github.com/repos/channelfix/todbackend/branches{/branch}","tags_url":"https://api.github.com/repos/channelfix/todbackend/tags","blobs_url":"https://api.github.com/repos/channelfix/todbackend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/channelfix/todbackend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/channelfix/todbackend/git/refs{/sha}","trees_url":"https://api.github.com/repos/channelfix/todbackend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/channelfix/todbackend/statuses/{sha}","languages_url":"https://api.github.com/repos/channelfix/todbackend/languages","stargazers_url":"https://api.github.com/repos/channelfix/todbackend/stargazers","contributors_url":"https://api.github.com/repos/channelfix/todbackend/contributors","subscribers_url":"https://api.github.com/repos/channelfix/todbackend/subscribers","subscription_url":"https://api.github.com/repos/channelfix/todbackend/subscription","commits_url":"https://api.github.com/repos/channelfix/todbackend/commits{/sha}","git_commits_url":"https://api.github.com/repos/channelfix/todbackend/git/commits{/sha}","comments_url":"https://api.github.com/repos/channelfix/todbackend/comments{/number}","issue_comment_url":"https://api.github.com/repos/channelfix/todbackend/issues/comments{/number}","contents_url":"https://api.github.com/repos/channelfix/todbackend/contents/{+path}","compare_url":"https://api.github.com/repos/channelfix/todbackend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/channelfix/todbackend/merges","archive_url":"https://api.github.com/repos/channelfix/todbackend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/channelfix/todbackend/downloads","issues_url":"https://api.github.com/repos/channelfix/todbackend/issues{/number}","pulls_url":"https://api.github.com/repos/channelfix/todbackend/pulls{/number}","milestones_url":"https://api.github.com/repos/channelfix/todbackend/milestones{/number}","notifications_url":"https://api.github.com/repos/channelfix/todbackend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/channelfix/todbackend/labels{/name}","releases_url":"https://api.github.com/repos/channelfix/todbackend/releases{/id}","deployments_url":"https://api.github.com/repos/channelfix/todbackend/deployments","created_at":"2018-03-05T13:17:38Z","updated_at":"2018-03-12T11:21:39Z","pushed_at":"2018-04-09T15:18:52Z","git_url":"git://github.com/channelfix/todbackend.git","ssh_url":"git@github.com:channelfix/todbackend.git","clone_url":"https://github.com/channelfix/todbackend.git","svn_url":"https://github.com/channelfix/todbackend","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/channelfix/todbackend/pulls/2"},"html":{"href":"https://github.com/channelfix/todbackend/pull/2"},"issue":{"href":"https://api.github.com/repos/channelfix/todbackend/issues/2"},"comments":{"href":"https://api.github.com/repos/channelfix/todbackend/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/channelfix/todbackend/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/channelfix/todbackend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/channelfix/todbackend/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/channelfix/todbackend/statuses/a736d7fbca12225315f2dfd6a842bd9a4f6712e6"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kevcal69"}}