{"action":"created","comment":{"url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/comments/24820490","id":24820490,"diff_hunk":"@@ -40,7 +42,29 @@ def project_detail(request,project_id):\n \tproject = get_object_or_404(Project, project_id=project_id)\n \treturn render(request, 'pages/project_detail.html', {'project': project})\n \n+def project_new(request):\n+\tif request.method == \"POST\":\n+\t\tprojectform = ProjectForm (request.POST)\n+\t\tif projectform.is_valid():\n+\t\t\tproject = projectform.save()\n+\t\t\treturn redirect('web.views.project_detail', project_id=project.project_id)\n+\telse:\n+\t\tprojectform = ProjectForm()\n+\n+\treturn render(request, 'pages/project_edit.html', {'projectform': projectform})\n+\n+def project_edit(request, project_id):\n+\tproject = get_object_or_404(Project, project_id=project_id)","path":"web/views.py","position":null,"original_position":24,"commit_id":"ba9ff11d56ac12d59ffb721f5deb50f26586d4c0","original_commit_id":"9b2c2fbbf5d5e07c14b1503e332eccafce04072c","user":{"login":"ercchy","id":2290441,"avatar_url":"https://avatars.githubusercontent.com/u/2290441?v=3","gravatar_id":"","url":"https://api.github.com/users/ercchy","html_url":"https://github.com/ercchy","followers_url":"https://api.github.com/users/ercchy/followers","following_url":"https://api.github.com/users/ercchy/following{/other_user}","gists_url":"https://api.github.com/users/ercchy/gists{/gist_id}","starred_url":"https://api.github.com/users/ercchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ercchy/subscriptions","organizations_url":"https://api.github.com/users/ercchy/orgs","repos_url":"https://api.github.com/users/ercchy/repos","events_url":"https://api.github.com/users/ercchy/events{/privacy}","received_events_url":"https://api.github.com/users/ercchy/received_events","type":"User","site_admin":false},"body":"@livike I am not sure, bcs you said nothing about what kind of an error you get","created_at":"2015-02-17T14:56:43Z","updated_at":"2015-02-17T14:56:43Z","html_url":"https://github.com/CodeCatz/TrackCat/pull/132#discussion_r24820490","pull_request_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/comments/24820490"},"html":{"href":"https://github.com/CodeCatz/TrackCat/pull/132#discussion_r24820490"},"pull_request":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/132","id":29000344,"html_url":"https://github.com/CodeCatz/TrackCat/pull/132","diff_url":"https://github.com/CodeCatz/TrackCat/pull/132.diff","patch_url":"https://github.com/CodeCatz/TrackCat/pull/132.patch","issue_url":"https://api.github.com/repos/CodeCatz/TrackCat/issues/132","number":132,"state":"open","locked":false,"title":"Added form for projects, added views for new&edit project","user":{"login":"livike","id":6690754,"avatar_url":"https://avatars.githubusercontent.com/u/6690754?v=3","gravatar_id":"","url":"https://api.github.com/users/livike","html_url":"https://github.com/livike","followers_url":"https://api.github.com/users/livike/followers","following_url":"https://api.github.com/users/livike/following{/other_user}","gists_url":"https://api.github.com/users/livike/gists{/gist_id}","starred_url":"https://api.github.com/users/livike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livike/subscriptions","organizations_url":"https://api.github.com/users/livike/orgs","repos_url":"https://api.github.com/users/livike/repos","events_url":"https://api.github.com/users/livike/events{/privacy}","received_events_url":"https://api.github.com/users/livike/received_events","type":"User","site_admin":false},"body":"Added form for edit and add new projects, using ModelForm.\r\nFor now no styling to the form elements.\r\nRelated to #121 ","created_at":"2015-02-10T11:43:50Z","updated_at":"2015-02-17T14:56:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51247a518bbe9ca83829e298269bcdce92b70cfb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/132/commits","review_comments_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/132/comments","review_comment_url":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/comments/{number}","comments_url":"https://api.github.com/repos/CodeCatz/TrackCat/issues/132/comments","statuses_url":"https://api.github.com/repos/CodeCatz/TrackCat/statuses/ba9ff11d56ac12d59ffb721f5deb50f26586d4c0","head":{"label":"livike:projectform","ref":"projectform","sha":"ba9ff11d56ac12d59ffb721f5deb50f26586d4c0","user":{"login":"livike","id":6690754,"avatar_url":"https://avatars.githubusercontent.com/u/6690754?v=3","gravatar_id":"","url":"https://api.github.com/users/livike","html_url":"https://github.com/livike","followers_url":"https://api.github.com/users/livike/followers","following_url":"https://api.github.com/users/livike/following{/other_user}","gists_url":"https://api.github.com/users/livike/gists{/gist_id}","starred_url":"https://api.github.com/users/livike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livike/subscriptions","organizations_url":"https://api.github.com/users/livike/orgs","repos_url":"https://api.github.com/users/livike/repos","events_url":"https://api.github.com/users/livike/events{/privacy}","received_events_url":"https://api.github.com/users/livike/received_events","type":"User","site_admin":false},"repo":{"id":27739484,"name":"TrackCat","full_name":"livike/TrackCat","owner":{"login":"livike","id":6690754,"avatar_url":"https://avatars.githubusercontent.com/u/6690754?v=3","gravatar_id":"","url":"https://api.github.com/users/livike","html_url":"https://github.com/livike","followers_url":"https://api.github.com/users/livike/followers","following_url":"https://api.github.com/users/livike/following{/other_user}","gists_url":"https://api.github.com/users/livike/gists{/gist_id}","starred_url":"https://api.github.com/users/livike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livike/subscriptions","organizations_url":"https://api.github.com/users/livike/orgs","repos_url":"https://api.github.com/users/livike/repos","events_url":"https://api.github.com/users/livike/events{/privacy}","received_events_url":"https://api.github.com/users/livike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/livike/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/livike/TrackCat","forks_url":"https://api.github.com/repos/livike/TrackCat/forks","keys_url":"https://api.github.com/repos/livike/TrackCat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/livike/TrackCat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/livike/TrackCat/teams","hooks_url":"https://api.github.com/repos/livike/TrackCat/hooks","issue_events_url":"https://api.github.com/repos/livike/TrackCat/issues/events{/number}","events_url":"https://api.github.com/repos/livike/TrackCat/events","assignees_url":"https://api.github.com/repos/livike/TrackCat/assignees{/user}","branches_url":"https://api.github.com/repos/livike/TrackCat/branches{/branch}","tags_url":"https://api.github.com/repos/livike/TrackCat/tags","blobs_url":"https://api.github.com/repos/livike/TrackCat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/livike/TrackCat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/livike/TrackCat/git/refs{/sha}","trees_url":"https://api.github.com/repos/livike/TrackCat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/livike/TrackCat/statuses/{sha}","languages_url":"https://api.github.com/repos/livike/TrackCat/languages","stargazers_url":"https://api.github.com/repos/livike/TrackCat/stargazers","contributors_url":"https://api.github.com/repos/livike/TrackCat/contributors","subscribers_url":"https://api.github.com/repos/livike/TrackCat/subscribers","subscription_url":"https://api.github.com/repos/livike/TrackCat/subscription","commits_url":"https://api.github.com/repos/livike/TrackCat/commits{/sha}","git_commits_url":"https://api.github.com/repos/livike/TrackCat/git/commits{/sha}","comments_url":"https://api.github.com/repos/livike/TrackCat/comments{/number}","issue_comment_url":"https://api.github.com/repos/livike/TrackCat/issues/comments/{number}","contents_url":"https://api.github.com/repos/livike/TrackCat/contents/{+path}","compare_url":"https://api.github.com/repos/livike/TrackCat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/livike/TrackCat/merges","archive_url":"https://api.github.com/repos/livike/TrackCat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/livike/TrackCat/downloads","issues_url":"https://api.github.com/repos/livike/TrackCat/issues{/number}","pulls_url":"https://api.github.com/repos/livike/TrackCat/pulls{/number}","milestones_url":"https://api.github.com/repos/livike/TrackCat/milestones{/number}","notifications_url":"https://api.github.com/repos/livike/TrackCat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/livike/TrackCat/labels{/name}","releases_url":"https://api.github.com/repos/livike/TrackCat/releases{/id}","created_at":"2014-12-08T23:03:03Z","updated_at":"2015-01-21T19:43:27Z","pushed_at":"2015-02-17T14:45:40Z","git_url":"git://github.com/livike/TrackCat.git","ssh_url":"git@github.com:livike/TrackCat.git","clone_url":"https://github.com/livike/TrackCat.git","svn_url":"https://github.com/livike/TrackCat","homepage":"","size":10348,"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":"2dcf4da2f6e12ba062f0c10d5587e93da3dfc23a","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-02-17T13:30:07Z","pushed_at":"2015-02-17T13:30:06Z","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":13593,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":15,"forks":17,"open_issues":15,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/132"},"html":{"href":"https://github.com/CodeCatz/TrackCat/pull/132"},"issue":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/issues/132"},"comments":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/CodeCatz/TrackCat/statuses/ba9ff11d56ac12d59ffb721f5deb50f26586d4c0"}}}}