{"action":"created","comment":{"url":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/comments/106556297","pull_request_review_id":27485263,"id":106556297,"diff_hunk":"@@ -1,55 +1,94 @@\n+'''Project Share Models'''\n from django import forms\n from django.forms import ModelForm\n \n-from project_share.models import Project, Approval, Address, Application, ApplicationCategory, ExtendedUser\n+from project_share.models import Project, Approval, Address, \\\n+    Application, ApplicationCategory\n from django_teams.models import Team, TeamStatus\n \n+\n class ProjectForm(ModelForm):\n-    def __init__(self,*args,**kwargs):\n+    '''Project Form'''\n+    def __init__(self, *args, **kwargs):\n         user = kwargs.pop('user')\n-        super (ProjectForm,self ).__init__(*args,**kwargs) # populates the post\n-        self.fields['classroom'].queryset = Team.objects.filter(users=user) # make sure we're only getting the right classrooms\n+        # populates the post\n+        super(ProjectForm, self).__init__(*args, **kwargs)\n+        # make sure we're only getting the right classrooms:\n+        self.fields['classroom'].queryset = Team.objects.filter(users=user)\n \n     class Meta:\n         model = Project\n-        exclude = ('owner', 'approved','application','project','screenshot','parent',)\n-\t\t\n+        exclude = ('owner', 'approved',\n+                   'application', 'project',\n+                   'screenshot', 'parent',)\n+\n+\n class ProjectUnpublishForm(ModelForm):\n+    '''Project Unpublish Form'''\n     class Meta:\n         model = Project\n-        exclude = ('owner', 'approved','application','project','screenshot','parent',)\n+        exclude = ('owner', 'approved',\n+                   'application', 'project',\n+                   'screenshot', 'parent',)\n+\n \n class ApprovalForm(ModelForm):\n+    '''Project Approval Form'''","path":"project_share/forms.py","position":43,"original_position":43,"commit_id":"7e922e16a2b49e285834724afb10192f3379fc39","original_commit_id":"7e922e16a2b49e285834724afb10192f3379fc39","user":{"login":"SillyInventor","id":8440451,"avatar_url":"https://avatars3.githubusercontent.com/u/8440451?v=3","gravatar_id":"","url":"https://api.github.com/users/SillyInventor","html_url":"https://github.com/SillyInventor","followers_url":"https://api.github.com/users/SillyInventor/followers","following_url":"https://api.github.com/users/SillyInventor/following{/other_user}","gists_url":"https://api.github.com/users/SillyInventor/gists{/gist_id}","starred_url":"https://api.github.com/users/SillyInventor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SillyInventor/subscriptions","organizations_url":"https://api.github.com/users/SillyInventor/orgs","repos_url":"https://api.github.com/users/SillyInventor/repos","events_url":"https://api.github.com/users/SillyInventor/events{/privacy}","received_events_url":"https://api.github.com/users/SillyInventor/received_events","type":"User","site_admin":false},"body":"Needs elaboration, per pep 257.","created_at":"2017-03-16T23:36:09Z","updated_at":"2017-03-16T23:36:09Z","html_url":"https://github.com/CSnap/rpi_csdt_community/pull/132#discussion_r106556297","pull_request_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/comments/106556297"},"html":{"href":"https://github.com/CSnap/rpi_csdt_community/pull/132#discussion_r106556297"},"pull_request":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/132","id":111108606,"html_url":"https://github.com/CSnap/rpi_csdt_community/pull/132","diff_url":"https://github.com/CSnap/rpi_csdt_community/pull/132.diff","patch_url":"https://github.com/CSnap/rpi_csdt_community/pull/132.patch","issue_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues/132","number":132,"state":"open","locked":false,"title":"Linting","user":{"login":"ryaholm","id":23264375,"avatar_url":"https://avatars1.githubusercontent.com/u/23264375?v=3","gravatar_id":"","url":"https://api.github.com/users/ryaholm","html_url":"https://github.com/ryaholm","followers_url":"https://api.github.com/users/ryaholm/followers","following_url":"https://api.github.com/users/ryaholm/following{/other_user}","gists_url":"https://api.github.com/users/ryaholm/gists{/gist_id}","starred_url":"https://api.github.com/users/ryaholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryaholm/subscriptions","organizations_url":"https://api.github.com/users/ryaholm/orgs","repos_url":"https://api.github.com/users/ryaholm/repos","events_url":"https://api.github.com/users/ryaholm/events{/privacy}","received_events_url":"https://api.github.com/users/ryaholm/received_events","type":"User","site_admin":false},"body":"Linted using `flake8 .`","created_at":"2017-03-16T16:23:10Z","updated_at":"2017-03-16T23:36:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe1ce742ecdc5ff273fe49d4f55fd1b7a65b3450","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/132/commits","review_comments_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/132/comments","review_comment_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues/132/comments","statuses_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/statuses/7e922e16a2b49e285834724afb10192f3379fc39","head":{"label":"CSnap:linting","ref":"linting","sha":"7e922e16a2b49e285834724afb10192f3379fc39","user":{"login":"CSnap","id":1864629,"avatar_url":"https://avatars0.githubusercontent.com/u/1864629?v=3","gravatar_id":"","url":"https://api.github.com/users/CSnap","html_url":"https://github.com/CSnap","followers_url":"https://api.github.com/users/CSnap/followers","following_url":"https://api.github.com/users/CSnap/following{/other_user}","gists_url":"https://api.github.com/users/CSnap/gists{/gist_id}","starred_url":"https://api.github.com/users/CSnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CSnap/subscriptions","organizations_url":"https://api.github.com/users/CSnap/orgs","repos_url":"https://api.github.com/users/CSnap/repos","events_url":"https://api.github.com/users/CSnap/events{/privacy}","received_events_url":"https://api.github.com/users/CSnap/received_events","type":"Organization","site_admin":false},"repo":{"id":9176687,"name":"rpi_csdt_community","full_name":"CSnap/rpi_csdt_community","owner":{"login":"CSnap","id":1864629,"avatar_url":"https://avatars0.githubusercontent.com/u/1864629?v=3","gravatar_id":"","url":"https://api.github.com/users/CSnap","html_url":"https://github.com/CSnap","followers_url":"https://api.github.com/users/CSnap/followers","following_url":"https://api.github.com/users/CSnap/following{/other_user}","gists_url":"https://api.github.com/users/CSnap/gists{/gist_id}","starred_url":"https://api.github.com/users/CSnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CSnap/subscriptions","organizations_url":"https://api.github.com/users/CSnap/orgs","repos_url":"https://api.github.com/users/CSnap/repos","events_url":"https://api.github.com/users/CSnap/events{/privacy}","received_events_url":"https://api.github.com/users/CSnap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CSnap/rpi_csdt_community","description":"Site for RPI's CSDTs","fork":false,"url":"https://api.github.com/repos/CSnap/rpi_csdt_community","forks_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/forks","keys_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/teams","hooks_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/hooks","issue_events_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues/events{/number}","events_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/events","assignees_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/assignees{/user}","branches_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/branches{/branch}","tags_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/tags","blobs_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/refs{/sha}","trees_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/statuses/{sha}","languages_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/languages","stargazers_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/stargazers","contributors_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/contributors","subscribers_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/subscribers","subscription_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/subscription","commits_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/commits{/sha}","git_commits_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/commits{/sha}","comments_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/comments{/number}","issue_comment_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues/comments{/number}","contents_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/contents/{+path}","compare_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/merges","archive_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/downloads","issues_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues{/number}","pulls_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls{/number}","milestones_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/milestones{/number}","notifications_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/labels{/name}","releases_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/releases{/id}","deployments_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/deployments","created_at":"2013-04-02T18:18:30Z","updated_at":"2017-02-21T03:50:09Z","pushed_at":"2017-03-16T23:21:45Z","git_url":"git://github.com/CSnap/rpi_csdt_community.git","ssh_url":"git@github.com:CSnap/rpi_csdt_community.git","clone_url":"https://github.com/CSnap/rpi_csdt_community.git","svn_url":"https://github.com/CSnap/rpi_csdt_community","homepage":"https://community.csdt.rpi.edu/","size":83334,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":22,"forks":5,"open_issues":22,"watchers":2,"default_branch":"master"}},"base":{"label":"CSnap:master","ref":"master","sha":"6bb4added24807ffaf699b1833a3dc6f6666d7eb","user":{"login":"CSnap","id":1864629,"avatar_url":"https://avatars0.githubusercontent.com/u/1864629?v=3","gravatar_id":"","url":"https://api.github.com/users/CSnap","html_url":"https://github.com/CSnap","followers_url":"https://api.github.com/users/CSnap/followers","following_url":"https://api.github.com/users/CSnap/following{/other_user}","gists_url":"https://api.github.com/users/CSnap/gists{/gist_id}","starred_url":"https://api.github.com/users/CSnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CSnap/subscriptions","organizations_url":"https://api.github.com/users/CSnap/orgs","repos_url":"https://api.github.com/users/CSnap/repos","events_url":"https://api.github.com/users/CSnap/events{/privacy}","received_events_url":"https://api.github.com/users/CSnap/received_events","type":"Organization","site_admin":false},"repo":{"id":9176687,"name":"rpi_csdt_community","full_name":"CSnap/rpi_csdt_community","owner":{"login":"CSnap","id":1864629,"avatar_url":"https://avatars0.githubusercontent.com/u/1864629?v=3","gravatar_id":"","url":"https://api.github.com/users/CSnap","html_url":"https://github.com/CSnap","followers_url":"https://api.github.com/users/CSnap/followers","following_url":"https://api.github.com/users/CSnap/following{/other_user}","gists_url":"https://api.github.com/users/CSnap/gists{/gist_id}","starred_url":"https://api.github.com/users/CSnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CSnap/subscriptions","organizations_url":"https://api.github.com/users/CSnap/orgs","repos_url":"https://api.github.com/users/CSnap/repos","events_url":"https://api.github.com/users/CSnap/events{/privacy}","received_events_url":"https://api.github.com/users/CSnap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CSnap/rpi_csdt_community","description":"Site for RPI's CSDTs","fork":false,"url":"https://api.github.com/repos/CSnap/rpi_csdt_community","forks_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/forks","keys_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/teams","hooks_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/hooks","issue_events_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues/events{/number}","events_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/events","assignees_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/assignees{/user}","branches_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/branches{/branch}","tags_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/tags","blobs_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/refs{/sha}","trees_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/statuses/{sha}","languages_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/languages","stargazers_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/stargazers","contributors_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/contributors","subscribers_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/subscribers","subscription_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/subscription","commits_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/commits{/sha}","git_commits_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/git/commits{/sha}","comments_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/comments{/number}","issue_comment_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues/comments{/number}","contents_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/contents/{+path}","compare_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/merges","archive_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/downloads","issues_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues{/number}","pulls_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls{/number}","milestones_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/milestones{/number}","notifications_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/labels{/name}","releases_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/releases{/id}","deployments_url":"https://api.github.com/repos/CSnap/rpi_csdt_community/deployments","created_at":"2013-04-02T18:18:30Z","updated_at":"2017-02-21T03:50:09Z","pushed_at":"2017-03-16T23:21:45Z","git_url":"git://github.com/CSnap/rpi_csdt_community.git","ssh_url":"git@github.com:CSnap/rpi_csdt_community.git","clone_url":"https://github.com/CSnap/rpi_csdt_community.git","svn_url":"https://github.com/CSnap/rpi_csdt_community","homepage":"https://community.csdt.rpi.edu/","size":83334,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":22,"forks":5,"open_issues":22,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/132"},"html":{"href":"https://github.com/CSnap/rpi_csdt_community/pull/132"},"issue":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues/132"},"comments":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/CSnap/rpi_csdt_community/statuses/7e922e16a2b49e285834724afb10192f3379fc39"}}}}
{"actor":{"display_login":"SillyInventor"}}