{"action":"created","comment":{"url":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/comments/339882949","pull_request_review_id":308260492,"id":339882949,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzOTg4Mjk0OQ==","diff_hunk":"@@ -12,16 +12,22 @@\n from team.forms import CreateTeamForm, JoinTeamForm\n from team.models import Team\n from user.models import User\n+from application.models import Application\n \n \n-class CreateTeamView(shared_mixins.LoginRequiredAndAppliedMixin, generic.CreateView):\n+class CreateTeamView(shared_mixins.UserHasNoTeamMixin, generic.CreateView):\n     \"\"\"\n     If the user has applied, creates a Team and adds the User to it.\n     \"\"\"\n \n     form_class = CreateTeamForm\n     template_name = \"team/team_form.html\"\n \n+    def handle_no_permission(self):\n+        if not self.request.user.is_authenticated:\n+            return redirect(\"/accounts/login/?next=/team/\")\n+        return redirect(\"/status/\")","path":"hiss/team/views.py","position":19,"original_position":19,"commit_id":"e65ffc636c136aaad13b21c90168b53ca79e92d7","original_commit_id":"e65ffc636c136aaad13b21c90168b53ca79e92d7","user":{"login":"SaltyQuetzals","id":15918436,"node_id":"MDQ6VXNlcjE1OTE4NDM2","avatar_url":"https://avatars0.githubusercontent.com/u/15918436?v=4","gravatar_id":"","url":"https://api.github.com/users/SaltyQuetzals","html_url":"https://github.com/SaltyQuetzals","followers_url":"https://api.github.com/users/SaltyQuetzals/followers","following_url":"https://api.github.com/users/SaltyQuetzals/following{/other_user}","gists_url":"https://api.github.com/users/SaltyQuetzals/gists{/gist_id}","starred_url":"https://api.github.com/users/SaltyQuetzals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaltyQuetzals/subscriptions","organizations_url":"https://api.github.com/users/SaltyQuetzals/orgs","repos_url":"https://api.github.com/users/SaltyQuetzals/repos","events_url":"https://api.github.com/users/SaltyQuetzals/events{/privacy}","received_events_url":"https://api.github.com/users/SaltyQuetzals/received_events","type":"User","site_admin":false},"body":"Please use `reverse_lazy` here instead of hard-coding the URL.\r\n\r\n```suggestion\r\n        return redirect(reverse_lazy(\"status\"))\r\n```","created_at":"2019-10-29T03:41:27Z","updated_at":"2019-10-29T03:46:25Z","html_url":"https://github.com/tamuhack-org/Ouroboros/pull/285#discussion_r339882949","pull_request_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/285","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/comments/339882949"},"html":{"href":"https://github.com/tamuhack-org/Ouroboros/pull/285#discussion_r339882949"},"pull_request":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/285"}}},"pull_request":{"url":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/285","id":333413204,"node_id":"MDExOlB1bGxSZXF1ZXN0MzMzNDEzMjA0","html_url":"https://github.com/tamuhack-org/Ouroboros/pull/285","diff_url":"https://github.com/tamuhack-org/Ouroboros/pull/285.diff","patch_url":"https://github.com/tamuhack-org/Ouroboros/pull/285.patch","issue_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues/285","number":285,"state":"open","locked":false,"title":"Issues241and242","user":{"login":"cameron3301","id":37715360,"node_id":"MDQ6VXNlcjM3NzE1MzYw","avatar_url":"https://avatars1.githubusercontent.com/u/37715360?v=4","gravatar_id":"","url":"https://api.github.com/users/cameron3301","html_url":"https://github.com/cameron3301","followers_url":"https://api.github.com/users/cameron3301/followers","following_url":"https://api.github.com/users/cameron3301/following{/other_user}","gists_url":"https://api.github.com/users/cameron3301/gists{/gist_id}","starred_url":"https://api.github.com/users/cameron3301/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameron3301/subscriptions","organizations_url":"https://api.github.com/users/cameron3301/orgs","repos_url":"https://api.github.com/users/cameron3301/repos","events_url":"https://api.github.com/users/cameron3301/events{/privacy}","received_events_url":"https://api.github.com/users/cameron3301/received_events","type":"User","site_admin":false},"body":"Fixed the create/join/detail team URL access bugs -> set permissions restrictions.\r\n\r\nFixed login-in page bug -> users are redirected to the proper login page after logging out.","created_at":"2019-10-29T03:16:03Z","updated_at":"2019-10-29T03:46:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e15d1affc270c3e5fe8b010a92879e34b80c693f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"OneWebDev","id":24493949,"node_id":"MDQ6VXNlcjI0NDkzOTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/24493949?v=4","gravatar_id":"","url":"https://api.github.com/users/OneWebDev","html_url":"https://github.com/OneWebDev","followers_url":"https://api.github.com/users/OneWebDev/followers","following_url":"https://api.github.com/users/OneWebDev/following{/other_user}","gists_url":"https://api.github.com/users/OneWebDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OneWebDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneWebDev/subscriptions","organizations_url":"https://api.github.com/users/OneWebDev/orgs","repos_url":"https://api.github.com/users/OneWebDev/repos","events_url":"https://api.github.com/users/OneWebDev/events{/privacy}","received_events_url":"https://api.github.com/users/OneWebDev/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/285/commits","review_comments_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/285/comments","review_comment_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues/285/comments","statuses_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/statuses/e65ffc636c136aaad13b21c90168b53ca79e92d7","head":{"label":"tamuhack-org:issues241and242","ref":"issues241and242","sha":"e65ffc636c136aaad13b21c90168b53ca79e92d7","user":{"login":"tamuhack-org","id":17241448,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MjQxNDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/17241448?v=4","gravatar_id":"","url":"https://api.github.com/users/tamuhack-org","html_url":"https://github.com/tamuhack-org","followers_url":"https://api.github.com/users/tamuhack-org/followers","following_url":"https://api.github.com/users/tamuhack-org/following{/other_user}","gists_url":"https://api.github.com/users/tamuhack-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tamuhack-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamuhack-org/subscriptions","organizations_url":"https://api.github.com/users/tamuhack-org/orgs","repos_url":"https://api.github.com/users/tamuhack-org/repos","events_url":"https://api.github.com/users/tamuhack-org/events{/privacy}","received_events_url":"https://api.github.com/users/tamuhack-org/received_events","type":"Organization","site_admin":false},"repo":{"id":146917851,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY5MTc4NTE=","name":"Ouroboros","full_name":"tamuhack-org/Ouroboros","private":false,"owner":{"login":"tamuhack-org","id":17241448,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MjQxNDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/17241448?v=4","gravatar_id":"","url":"https://api.github.com/users/tamuhack-org","html_url":"https://github.com/tamuhack-org","followers_url":"https://api.github.com/users/tamuhack-org/followers","following_url":"https://api.github.com/users/tamuhack-org/following{/other_user}","gists_url":"https://api.github.com/users/tamuhack-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tamuhack-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamuhack-org/subscriptions","organizations_url":"https://api.github.com/users/tamuhack-org/orgs","repos_url":"https://api.github.com/users/tamuhack-org/repos","events_url":"https://api.github.com/users/tamuhack-org/events{/privacy}","received_events_url":"https://api.github.com/users/tamuhack-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tamuhack-org/Ouroboros","description":"An open-source, fully-customizable hackathon registration system.","fork":false,"url":"https://api.github.com/repos/tamuhack-org/Ouroboros","forks_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/forks","keys_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/teams","hooks_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/hooks","issue_events_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues/events{/number}","events_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/events","assignees_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/assignees{/user}","branches_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/branches{/branch}","tags_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/tags","blobs_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/refs{/sha}","trees_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/statuses/{sha}","languages_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/languages","stargazers_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/stargazers","contributors_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/contributors","subscribers_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/subscribers","subscription_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/subscription","commits_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/commits{/sha}","git_commits_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/commits{/sha}","comments_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/comments{/number}","issue_comment_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues/comments{/number}","contents_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/contents/{+path}","compare_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/merges","archive_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/downloads","issues_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues{/number}","pulls_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls{/number}","milestones_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/milestones{/number}","notifications_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/labels{/name}","releases_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/releases{/id}","deployments_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/deployments","created_at":"2018-08-31T16:36:37Z","updated_at":"2019-10-29T02:06:36Z","pushed_at":"2019-10-29T03:42:58Z","git_url":"git://github.com/tamuhack-org/Ouroboros.git","ssh_url":"git@github.com:tamuhack-org/Ouroboros.git","clone_url":"https://github.com/tamuhack-org/Ouroboros.git","svn_url":"https://github.com/tamuhack-org/Ouroboros","homepage":"https://register.tamuhack.com","size":1542,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":20,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1,"open_issues":20,"watchers":10,"default_branch":"master"}},"base":{"label":"tamuhack-org:master","ref":"master","sha":"3f0516a0825c365027c18d065ff2cfd56136fb9c","user":{"login":"tamuhack-org","id":17241448,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MjQxNDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/17241448?v=4","gravatar_id":"","url":"https://api.github.com/users/tamuhack-org","html_url":"https://github.com/tamuhack-org","followers_url":"https://api.github.com/users/tamuhack-org/followers","following_url":"https://api.github.com/users/tamuhack-org/following{/other_user}","gists_url":"https://api.github.com/users/tamuhack-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tamuhack-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamuhack-org/subscriptions","organizations_url":"https://api.github.com/users/tamuhack-org/orgs","repos_url":"https://api.github.com/users/tamuhack-org/repos","events_url":"https://api.github.com/users/tamuhack-org/events{/privacy}","received_events_url":"https://api.github.com/users/tamuhack-org/received_events","type":"Organization","site_admin":false},"repo":{"id":146917851,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY5MTc4NTE=","name":"Ouroboros","full_name":"tamuhack-org/Ouroboros","private":false,"owner":{"login":"tamuhack-org","id":17241448,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MjQxNDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/17241448?v=4","gravatar_id":"","url":"https://api.github.com/users/tamuhack-org","html_url":"https://github.com/tamuhack-org","followers_url":"https://api.github.com/users/tamuhack-org/followers","following_url":"https://api.github.com/users/tamuhack-org/following{/other_user}","gists_url":"https://api.github.com/users/tamuhack-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tamuhack-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamuhack-org/subscriptions","organizations_url":"https://api.github.com/users/tamuhack-org/orgs","repos_url":"https://api.github.com/users/tamuhack-org/repos","events_url":"https://api.github.com/users/tamuhack-org/events{/privacy}","received_events_url":"https://api.github.com/users/tamuhack-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tamuhack-org/Ouroboros","description":"An open-source, fully-customizable hackathon registration system.","fork":false,"url":"https://api.github.com/repos/tamuhack-org/Ouroboros","forks_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/forks","keys_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/teams","hooks_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/hooks","issue_events_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues/events{/number}","events_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/events","assignees_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/assignees{/user}","branches_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/branches{/branch}","tags_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/tags","blobs_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/refs{/sha}","trees_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/statuses/{sha}","languages_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/languages","stargazers_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/stargazers","contributors_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/contributors","subscribers_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/subscribers","subscription_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/subscription","commits_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/commits{/sha}","git_commits_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/git/commits{/sha}","comments_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/comments{/number}","issue_comment_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues/comments{/number}","contents_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/contents/{+path}","compare_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/merges","archive_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/downloads","issues_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues{/number}","pulls_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls{/number}","milestones_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/milestones{/number}","notifications_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/labels{/name}","releases_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/releases{/id}","deployments_url":"https://api.github.com/repos/tamuhack-org/Ouroboros/deployments","created_at":"2018-08-31T16:36:37Z","updated_at":"2019-10-29T02:06:36Z","pushed_at":"2019-10-29T03:42:58Z","git_url":"git://github.com/tamuhack-org/Ouroboros.git","ssh_url":"git@github.com:tamuhack-org/Ouroboros.git","clone_url":"https://github.com/tamuhack-org/Ouroboros.git","svn_url":"https://github.com/tamuhack-org/Ouroboros","homepage":"https://register.tamuhack.com","size":1542,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":20,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1,"open_issues":20,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/285"},"html":{"href":"https://github.com/tamuhack-org/Ouroboros/pull/285"},"issue":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues/285"},"comments":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/tamuhack-org/Ouroboros/statuses/e65ffc636c136aaad13b21c90168b53ca79e92d7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"SaltyQuetzals"}}