{"action":"created","comment":{"url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/comments/23562501","id":23562501,"diff_hunk":"@@ -1,3 +1,32 @@\n from django.db import models\n+from django.utils import timezone\n+from django.contrib.auth.models import User\n \n-# Create your models here.\n+ACTIVITY_LEVEL = (\n+\t\t\t(\"SC\", \"Sleepy_Cat\"),\n+\t\t\t(\"LC\", \"Lazy_Cat\"),\n+\t\t\t(\"AC\", \"Active_Cat\"),\n+\t\t\t(\"MC\", \"Mentor_Cat\"),\n+\t)\n+\n+class UserProfile(models.Model):\n+\tuser = models.OneToOneField(User) \n+\t#id = models.AutoField(primary_key=True) \n+\tfullname = models.CharField(max_length=100, blank=False)\n+\tgithubuser = models.CharField(max_length=100, null=False, blank=False)\n+\temail = models.EmailField(blank=False)\n+\tprofile_picture = models.ImageField(blank = True)  \n+\twebsite = models.URLField(null=False)\n+\tbio = models.TextField(max_length=2000,blank=True)\n+\tactive = models.BooleanField(default=False)\n+\tactivity_status = models.CharField(max_length=2, choices=ACTIVITY_LEVEL)\n+\tlast_logged_in = models.DateTimeField(auto_now=True, blank=False)\n+\tdate_created = models.DateTimeField(auto_now_add=True, blank=False)\n+\tdate_updated = models.DateTimeField(auto_now_add=True)\n+\n+\tdef publish(self):","path":"api/models.py","position":null,"original_position":28,"commit_id":"15004027c14bb409c29956e4128b3e82c7a1c8d0","original_commit_id":"5be04cb86b04e600fed7619965f3a7de6141cc0b","user":{"login":"PettraV","id":9576282,"avatar_url":"https://avatars.githubusercontent.com/u/9576282?v=3","gravatar_id":"","url":"https://api.github.com/users/PettraV","html_url":"https://github.com/PettraV","followers_url":"https://api.github.com/users/PettraV/followers","following_url":"https://api.github.com/users/PettraV/following{/other_user}","gists_url":"https://api.github.com/users/PettraV/gists{/gist_id}","starred_url":"https://api.github.com/users/PettraV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PettraV/subscriptions","organizations_url":"https://api.github.com/users/PettraV/orgs","repos_url":"https://api.github.com/users/PettraV/repos","events_url":"https://api.github.com/users/PettraV/events{/privacy}","received_events_url":"https://api.github.com/users/PettraV/received_events","type":"User","site_admin":false},"body":"When i was reading the documentation link Alja sent all made sense to me, therefore the method was written to my code. Will deleted bot of them, thx","created_at":"2015-01-26T20:43:43Z","updated_at":"2015-01-26T20:43:43Z","html_url":"https://github.com/CodeCatz/TrackCat/pull/108#discussion_r23562501","pull_request_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/comments/23562501"},"html":{"href":"https://github.com/CodeCatz/TrackCat/pull/108#discussion_r23562501"},"pull_request":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/108","id":28055132,"html_url":"https://github.com/CodeCatz/TrackCat/pull/108","diff_url":"https://github.com/CodeCatz/TrackCat/pull/108.diff","patch_url":"https://github.com/CodeCatz/TrackCat/pull/108.patch","issue_url":"https://api.github.com/repos/CodeCatz/TrackCat/issues/108","number":108,"state":"open","locked":false,"title":"created Userprofile class in api/models.py","user":{"login":"PettraV","id":9576282,"avatar_url":"https://avatars.githubusercontent.com/u/9576282?v=3","gravatar_id":"","url":"https://api.github.com/users/PettraV","html_url":"https://github.com/PettraV","followers_url":"https://api.github.com/users/PettraV/followers","following_url":"https://api.github.com/users/PettraV/following{/other_user}","gists_url":"https://api.github.com/users/PettraV/gists{/gist_id}","starred_url":"https://api.github.com/users/PettraV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PettraV/subscriptions","organizations_url":"https://api.github.com/users/PettraV/orgs","repos_url":"https://api.github.com/users/PettraV/repos","events_url":"https://api.github.com/users/PettraV/events{/privacy}","received_events_url":"https://api.github.com/users/PettraV/received_events","type":"User","site_admin":false},"body":"within a branch\r\nI followed @livike table for users, although I had to change many settings so I could finished migrations which are not required now.\r\nAs for User, I followed this link https://github.com/codeeu/coding-events/blob/master/api/models/users.py ","created_at":"2015-01-26T19:56:06Z","updated_at":"2015-01-26T20:43:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"493bbb0808b48c5a27009032ea00a4a39d83492d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/108/commits","review_comments_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/108/comments","review_comment_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/comments/{number}","comments_url":"https://api.github.com/repos/CodeCatz/TrackCat/issues/108/comments","statuses_url":"https://api.github.com/repos/CodeCatz/TrackCat/statuses/15004027c14bb409c29956e4128b3e82c7a1c8d0","head":{"label":"PettraV:userprofile-model","ref":"userprofile-model","sha":"15004027c14bb409c29956e4128b3e82c7a1c8d0","user":{"login":"PettraV","id":9576282,"avatar_url":"https://avatars.githubusercontent.com/u/9576282?v=3","gravatar_id":"","url":"https://api.github.com/users/PettraV","html_url":"https://github.com/PettraV","followers_url":"https://api.github.com/users/PettraV/followers","following_url":"https://api.github.com/users/PettraV/following{/other_user}","gists_url":"https://api.github.com/users/PettraV/gists{/gist_id}","starred_url":"https://api.github.com/users/PettraV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PettraV/subscriptions","organizations_url":"https://api.github.com/users/PettraV/orgs","repos_url":"https://api.github.com/users/PettraV/repos","events_url":"https://api.github.com/users/PettraV/events{/privacy}","received_events_url":"https://api.github.com/users/PettraV/received_events","type":"User","site_admin":false},"repo":{"id":29790518,"name":"TrackCat","full_name":"PettraV/TrackCat","owner":{"login":"PettraV","id":9576282,"avatar_url":"https://avatars.githubusercontent.com/u/9576282?v=3","gravatar_id":"","url":"https://api.github.com/users/PettraV","html_url":"https://github.com/PettraV","followers_url":"https://api.github.com/users/PettraV/followers","following_url":"https://api.github.com/users/PettraV/following{/other_user}","gists_url":"https://api.github.com/users/PettraV/gists{/gist_id}","starred_url":"https://api.github.com/users/PettraV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PettraV/subscriptions","organizations_url":"https://api.github.com/users/PettraV/orgs","repos_url":"https://api.github.com/users/PettraV/repos","events_url":"https://api.github.com/users/PettraV/events{/privacy}","received_events_url":"https://api.github.com/users/PettraV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PettraV/TrackCat","description":"A tool for tracking the progress of the kittens (and cat{s,z}) in our CodeCatz meetup group","fork":true,"url":"https://api.github.com/repos/PettraV/TrackCat","forks_url":"https://api.github.com/repos/PettraV/TrackCat/forks","keys_url":"https://api.github.com/repos/PettraV/TrackCat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PettraV/TrackCat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PettraV/TrackCat/teams","hooks_url":"https://api.github.com/repos/PettraV/TrackCat/hooks","issue_events_url":"https://api.github.com/repos/PettraV/TrackCat/issues/events{/number}","events_url":"https://api.github.com/repos/PettraV/TrackCat/events","assignees_url":"https://api.github.com/repos/PettraV/TrackCat/assignees{/user}","branches_url":"https://api.github.com/repos/PettraV/TrackCat/branches{/branch}","tags_url":"https://api.github.com/repos/PettraV/TrackCat/tags","blobs_url":"https://api.github.com/repos/PettraV/TrackCat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PettraV/TrackCat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PettraV/TrackCat/git/refs{/sha}","trees_url":"https://api.github.com/repos/PettraV/TrackCat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PettraV/TrackCat/statuses/{sha}","languages_url":"https://api.github.com/repos/PettraV/TrackCat/languages","stargazers_url":"https://api.github.com/repos/PettraV/TrackCat/stargazers","contributors_url":"https://api.github.com/repos/PettraV/TrackCat/contributors","subscribers_url":"https://api.github.com/repos/PettraV/TrackCat/subscribers","subscription_url":"https://api.github.com/repos/PettraV/TrackCat/subscription","commits_url":"https://api.github.com/repos/PettraV/TrackCat/commits{/sha}","git_commits_url":"https://api.github.com/repos/PettraV/TrackCat/git/commits{/sha}","comments_url":"https://api.github.com/repos/PettraV/TrackCat/comments{/number}","issue_comment_url":"https://api.github.com/repos/PettraV/TrackCat/issues/comments/{number}","contents_url":"https://api.github.com/repos/PettraV/TrackCat/contents/{+path}","compare_url":"https://api.github.com/repos/PettraV/TrackCat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PettraV/TrackCat/merges","archive_url":"https://api.github.com/repos/PettraV/TrackCat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PettraV/TrackCat/downloads","issues_url":"https://api.github.com/repos/PettraV/TrackCat/issues{/number}","pulls_url":"https://api.github.com/repos/PettraV/TrackCat/pulls{/number}","milestones_url":"https://api.github.com/repos/PettraV/TrackCat/milestones{/number}","notifications_url":"https://api.github.com/repos/PettraV/TrackCat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PettraV/TrackCat/labels{/name}","releases_url":"https://api.github.com/repos/PettraV/TrackCat/releases{/id}","created_at":"2015-01-24T20:28:59Z","updated_at":"2015-01-24T20:29:00Z","pushed_at":"2015-01-26T20:42:33Z","git_url":"git://github.com/PettraV/TrackCat.git","ssh_url":"git@github.com:PettraV/TrackCat.git","clone_url":"https://github.com/PettraV/TrackCat.git","svn_url":"https://github.com/PettraV/TrackCat","homepage":"","size":12940,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"CodeCatz:master","ref":"master","sha":"76c60efee3945766bfa28c60c17568ecc0d99061","user":{"login":"CodeCatz","id":5032425,"avatar_url":"https://avatars.githubusercontent.com/u/5032425?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCatz","html_url":"https://github.com/CodeCatz","followers_url":"https://api.github.com/users/CodeCatz/followers","following_url":"https://api.github.com/users/CodeCatz/following{/other_user}","gists_url":"https://api.github.com/users/CodeCatz/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCatz/subscriptions","organizations_url":"https://api.github.com/users/CodeCatz/orgs","repos_url":"https://api.github.com/users/CodeCatz/repos","events_url":"https://api.github.com/users/CodeCatz/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCatz/received_events","type":"Organization","site_admin":false},"repo":{"id":27508805,"name":"TrackCat","full_name":"CodeCatz/TrackCat","owner":{"login":"CodeCatz","id":5032425,"avatar_url":"https://avatars.githubusercontent.com/u/5032425?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCatz","html_url":"https://github.com/CodeCatz","followers_url":"https://api.github.com/users/CodeCatz/followers","following_url":"https://api.github.com/users/CodeCatz/following{/other_user}","gists_url":"https://api.github.com/users/CodeCatz/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCatz/subscriptions","organizations_url":"https://api.github.com/users/CodeCatz/orgs","repos_url":"https://api.github.com/users/CodeCatz/repos","events_url":"https://api.github.com/users/CodeCatz/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCatz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeCatz/TrackCat","description":"A tool for tracking the progress of the kittens (and cat{s,z}) in our CodeCatz meetup group","fork":false,"url":"https://api.github.com/repos/CodeCatz/TrackCat","forks_url":"https://api.github.com/repos/CodeCatz/TrackCat/forks","keys_url":"https://api.github.com/repos/CodeCatz/TrackCat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeCatz/TrackCat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeCatz/TrackCat/teams","hooks_url":"https://api.github.com/repos/CodeCatz/TrackCat/hooks","issue_events_url":"https://api.github.com/repos/CodeCatz/TrackCat/issues/events{/number}","events_url":"https://api.github.com/repos/CodeCatz/TrackCat/events","assignees_url":"https://api.github.com/repos/CodeCatz/TrackCat/assignees{/user}","branches_url":"https://api.github.com/repos/CodeCatz/TrackCat/branches{/branch}","tags_url":"https://api.github.com/repos/CodeCatz/TrackCat/tags","blobs_url":"https://api.github.com/repos/CodeCatz/TrackCat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeCatz/TrackCat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeCatz/TrackCat/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeCatz/TrackCat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeCatz/TrackCat/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeCatz/TrackCat/languages","stargazers_url":"https://api.github.com/repos/CodeCatz/TrackCat/stargazers","contributors_url":"https://api.github.com/repos/CodeCatz/TrackCat/contributors","subscribers_url":"https://api.github.com/repos/CodeCatz/TrackCat/subscribers","subscription_url":"https://api.github.com/repos/CodeCatz/TrackCat/subscription","commits_url":"https://api.github.com/repos/CodeCatz/TrackCat/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeCatz/TrackCat/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeCatz/TrackCat/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeCatz/TrackCat/issues/comments/{number}","contents_url":"https://api.github.com/repos/CodeCatz/TrackCat/contents/{+path}","compare_url":"https://api.github.com/repos/CodeCatz/TrackCat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeCatz/TrackCat/merges","archive_url":"https://api.github.com/repos/CodeCatz/TrackCat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeCatz/TrackCat/downloads","issues_url":"https://api.github.com/repos/CodeCatz/TrackCat/issues{/number}","pulls_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeCatz/TrackCat/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeCatz/TrackCat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeCatz/TrackCat/labels{/name}","releases_url":"https://api.github.com/repos/CodeCatz/TrackCat/releases{/id}","created_at":"2014-12-03T21:35:13Z","updated_at":"2015-01-25T10:15:56Z","pushed_at":"2015-01-25T10:15:56Z","git_url":"git://github.com/CodeCatz/TrackCat.git","ssh_url":"git@github.com:CodeCatz/TrackCat.git","clone_url":"https://github.com/CodeCatz/TrackCat.git","svn_url":"https://github.com/CodeCatz/TrackCat","homepage":"","size":12940,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":18,"forks":17,"open_issues":18,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/108"},"html":{"href":"https://github.com/CodeCatz/TrackCat/pull/108"},"issue":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/issues/108"},"comments":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/statuses/15004027c14bb409c29956e4128b3e82c7a1c8d0"}}}}