{"action":"created","comment":{"url":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/comments/47314604","id":47314604,"diff_hunk":"@@ -1380,8 +1390,12 @@ def view_volunteer(request, volunteer_id):\n     volunteer = get_object_or_404(Volunteer, id=volunteer_id)\n     if volunteer.profile != request.user.profile:\n         validate_perms(request, ('Volunteer Reviewers',), require=True)\n-    volunteerform = VolunteerBidForm(instance=volunteer,\n-                                     prefix='Volunteer Info')\n+    volunteerform = VolunteerBidForm(\n+        instance=volunteer,\n+        prefix='Volunteer Info', \n+        available_windows=volunteer.conference.windows(),\n+        unavailable_windows=volunteer.conference.windows()","path":"expo/gbe/views.py","position":51,"original_position":51,"commit_id":"3e11ae093dc181cc2036fbbbe27356f00c804c3e","original_commit_id":"3e11ae093dc181cc2036fbbbe27356f00c804c3e","user":{"login":"bethlakshmi","id":4542707,"avatar_url":"https://avatars.githubusercontent.com/u/4542707?v=3","gravatar_id":"","url":"https://api.github.com/users/bethlakshmi","html_url":"https://github.com/bethlakshmi","followers_url":"https://api.github.com/users/bethlakshmi/followers","following_url":"https://api.github.com/users/bethlakshmi/following{/other_user}","gists_url":"https://api.github.com/users/bethlakshmi/gists{/gist_id}","starred_url":"https://api.github.com/users/bethlakshmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethlakshmi/subscriptions","organizations_url":"https://api.github.com/users/bethlakshmi/orgs","repos_url":"https://api.github.com/users/bethlakshmi/repos","events_url":"https://api.github.com/users/bethlakshmi/events{/privacy}","received_events_url":"https://api.github.com/users/bethlakshmi/received_events","type":"User","site_admin":false},"body":"Has a problem - this is optional and volunteers can leave it blank.  When they do, the data doesn't show up in the view case - it looks empty instead of unselected.  Example, hijack becky.suzanne@gmail.com  and view:\r\n\r\nhttp://localhost:8282/volunteer/view/462","created_at":"2015-12-11T02:06:11Z","updated_at":"2015-12-11T02:06:11Z","html_url":"https://github.com/bethlakshmi/GBE2/pull/586#discussion_r47314604","pull_request_url":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/586","_links":{"self":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/comments/47314604"},"html":{"href":"https://github.com/bethlakshmi/GBE2/pull/586#discussion_r47314604"},"pull_request":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/586"}}},"pull_request":{"url":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/586","id":52224530,"html_url":"https://github.com/bethlakshmi/GBE2/pull/586","diff_url":"https://github.com/bethlakshmi/GBE2/pull/586.diff","patch_url":"https://github.com/bethlakshmi/GBE2/pull/586.patch","issue_url":"https://api.github.com/repos/bethlakshmi/GBE2/issues/586","number":586,"state":"open","locked":false,"title":"Gbe 488: Remove hard-coded conference dates ","user":{"login":"jonkiparsky","id":5283553,"avatar_url":"https://avatars.githubusercontent.com/u/5283553?v=3","gravatar_id":"","url":"https://api.github.com/users/jonkiparsky","html_url":"https://github.com/jonkiparsky","followers_url":"https://api.github.com/users/jonkiparsky/followers","following_url":"https://api.github.com/users/jonkiparsky/following{/other_user}","gists_url":"https://api.github.com/users/jonkiparsky/gists{/gist_id}","starred_url":"https://api.github.com/users/jonkiparsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonkiparsky/subscriptions","organizations_url":"https://api.github.com/users/jonkiparsky/orgs","repos_url":"https://api.github.com/users/jonkiparsky/repos","events_url":"https://api.github.com/users/jonkiparsky/events{/privacy}","received_events_url":"https://api.github.com/users/jonkiparsky/received_events","type":"User","site_admin":false},"body":"This PR does a few things:\r\n1) provides a mechanism for specifying conference dates and volunteer slots in the DB, not as hard-coded lists\r\n2) migrates existing volunteer info to new mechanism\r\n3) provides code for registering volunteers\r\n4) updates some hard-coded defaults in scheduler to allow calendar display of current info (this needs more work, of course)\r\n\r\nKnown issue: display of volunteer slots (read-only and edit) is not working correctly. \r\nStill to do: \r\n # write \"part 2\" for after this migration is applied, deleting \"availability\" and \"unavailability\" from db and forms. \r\n # tests for new code\r\n\r\nIssuing PR to get some review and comment, so we can get this towards merge. This should not be merged until we're ready to take it to test, and then to live. ","created_at":"2015-12-01T07:28:53Z","updated_at":"2015-12-11T02:06:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8374c9ca7a943184f224250b0496f5b2f0538b7a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/586/commits","review_comments_url":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/586/comments","review_comment_url":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bethlakshmi/GBE2/issues/586/comments","statuses_url":"https://api.github.com/repos/bethlakshmi/GBE2/statuses/3e11ae093dc181cc2036fbbbe27356f00c804c3e","head":{"label":"bethlakshmi:GBE-488","ref":"GBE-488","sha":"3e11ae093dc181cc2036fbbbe27356f00c804c3e","user":{"login":"bethlakshmi","id":4542707,"avatar_url":"https://avatars.githubusercontent.com/u/4542707?v=3","gravatar_id":"","url":"https://api.github.com/users/bethlakshmi","html_url":"https://github.com/bethlakshmi","followers_url":"https://api.github.com/users/bethlakshmi/followers","following_url":"https://api.github.com/users/bethlakshmi/following{/other_user}","gists_url":"https://api.github.com/users/bethlakshmi/gists{/gist_id}","starred_url":"https://api.github.com/users/bethlakshmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethlakshmi/subscriptions","organizations_url":"https://api.github.com/users/bethlakshmi/orgs","repos_url":"https://api.github.com/users/bethlakshmi/repos","events_url":"https://api.github.com/users/bethlakshmi/events{/privacy}","received_events_url":"https://api.github.com/users/bethlakshmi/received_events","type":"User","site_admin":false},"repo":{"id":17325575,"name":"GBE2","full_name":"bethlakshmi/GBE2","owner":{"login":"bethlakshmi","id":4542707,"avatar_url":"https://avatars.githubusercontent.com/u/4542707?v=3","gravatar_id":"","url":"https://api.github.com/users/bethlakshmi","html_url":"https://github.com/bethlakshmi","followers_url":"https://api.github.com/users/bethlakshmi/followers","following_url":"https://api.github.com/users/bethlakshmi/following{/other_user}","gists_url":"https://api.github.com/users/bethlakshmi/gists{/gist_id}","starred_url":"https://api.github.com/users/bethlakshmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethlakshmi/subscriptions","organizations_url":"https://api.github.com/users/bethlakshmi/orgs","repos_url":"https://api.github.com/users/bethlakshmi/repos","events_url":"https://api.github.com/users/bethlakshmi/events{/privacy}","received_events_url":"https://api.github.com/users/bethlakshmi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bethlakshmi/GBE2","description":"Total rewrite of GBE original PHP into Python with Django","fork":false,"url":"https://api.github.com/repos/bethlakshmi/GBE2","forks_url":"https://api.github.com/repos/bethlakshmi/GBE2/forks","keys_url":"https://api.github.com/repos/bethlakshmi/GBE2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bethlakshmi/GBE2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bethlakshmi/GBE2/teams","hooks_url":"https://api.github.com/repos/bethlakshmi/GBE2/hooks","issue_events_url":"https://api.github.com/repos/bethlakshmi/GBE2/issues/events{/number}","events_url":"https://api.github.com/repos/bethlakshmi/GBE2/events","assignees_url":"https://api.github.com/repos/bethlakshmi/GBE2/assignees{/user}","branches_url":"https://api.github.com/repos/bethlakshmi/GBE2/branches{/branch}","tags_url":"https://api.github.com/repos/bethlakshmi/GBE2/tags","blobs_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/refs{/sha}","trees_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bethlakshmi/GBE2/statuses/{sha}","languages_url":"https://api.github.com/repos/bethlakshmi/GBE2/languages","stargazers_url":"https://api.github.com/repos/bethlakshmi/GBE2/stargazers","contributors_url":"https://api.github.com/repos/bethlakshmi/GBE2/contributors","subscribers_url":"https://api.github.com/repos/bethlakshmi/GBE2/subscribers","subscription_url":"https://api.github.com/repos/bethlakshmi/GBE2/subscription","commits_url":"https://api.github.com/repos/bethlakshmi/GBE2/commits{/sha}","git_commits_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/commits{/sha}","comments_url":"https://api.github.com/repos/bethlakshmi/GBE2/comments{/number}","issue_comment_url":"https://api.github.com/repos/bethlakshmi/GBE2/issues/comments{/number}","contents_url":"https://api.github.com/repos/bethlakshmi/GBE2/contents/{+path}","compare_url":"https://api.github.com/repos/bethlakshmi/GBE2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bethlakshmi/GBE2/merges","archive_url":"https://api.github.com/repos/bethlakshmi/GBE2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bethlakshmi/GBE2/downloads","issues_url":"https://api.github.com/repos/bethlakshmi/GBE2/issues{/number}","pulls_url":"https://api.github.com/repos/bethlakshmi/GBE2/pulls{/number}","milestones_url":"https://api.github.com/repos/bethlakshmi/GBE2/milestones{/number}","notifications_url":"https://api.github.com/repos/bethlakshmi/GBE2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bethlakshmi/GBE2/labels{/name}","releases_url":"https://api.github.com/repos/bethlakshmi/GBE2/releases{/id}","created_at":"2014-03-01T22:14:43Z","updated_at":"2015-05-02T19:08:02Z","pushed_at":"2015-12-10T05:31:25Z","git_url":"git://github.com/bethlakshmi/GBE2.git","ssh_url":"git@github.com:bethlakshmi/GBE2.git","clone_url":"https://github.com/bethlakshmi/GBE2.git","svn_url":"https://github.com/bethlakshmi/GBE2","homepage":null,"size":8283,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":120,"forks":1,"open_issues":120,"watchers":1,"default_branch":"master"}},"base":{"label":"bethlakshmi:master","ref":"master","sha":"53b70fc0ea3c9bb5e2e4c8c1a2db258ee98e9468","user":{"login":"bethlakshmi","id":4542707,"avatar_url":"https://avatars.githubusercontent.com/u/4542707?v=3","gravatar_id":"","url":"https://api.github.com/users/bethlakshmi","html_url":"https://github.com/bethlakshmi","followers_url":"https://api.github.com/users/bethlakshmi/followers","following_url":"https://api.github.com/users/bethlakshmi/following{/other_user}","gists_url":"https://api.github.com/users/bethlakshmi/gists{/gist_id}","starred_url":"https://api.github.com/users/bethlakshmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethlakshmi/subscriptions","organizations_url":"https://api.github.com/users/bethlakshmi/orgs","repos_url":"https://api.github.com/users/bethlakshmi/repos","events_url":"https://api.github.com/users/bethlakshmi/events{/privacy}","received_events_url":"https://api.github.com/users/bethlakshmi/received_events","type":"User","site_admin":false},"repo":{"id":17325575,"name":"GBE2","full_name":"bethlakshmi/GBE2","owner":{"login":"bethlakshmi","id":4542707,"avatar_url":"https://avatars.githubusercontent.com/u/4542707?v=3","gravatar_id":"","url":"https://api.github.com/users/bethlakshmi","html_url":"https://github.com/bethlakshmi","followers_url":"https://api.github.com/users/bethlakshmi/followers","following_url":"https://api.github.com/users/bethlakshmi/following{/other_user}","gists_url":"https://api.github.com/users/bethlakshmi/gists{/gist_id}","starred_url":"https://api.github.com/users/bethlakshmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethlakshmi/subscriptions","organizations_url":"https://api.github.com/users/bethlakshmi/orgs","repos_url":"https://api.github.com/users/bethlakshmi/repos","events_url":"https://api.github.com/users/bethlakshmi/events{/privacy}","received_events_url":"https://api.github.com/users/bethlakshmi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bethlakshmi/GBE2","description":"Total rewrite of GBE original PHP into Python with Django","fork":false,"url":"https://api.github.com/repos/bethlakshmi/GBE2","forks_url":"https://api.github.com/repos/bethlakshmi/GBE2/forks","keys_url":"https://api.github.com/repos/bethlakshmi/GBE2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bethlakshmi/GBE2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bethlakshmi/GBE2/teams","hooks_url":"https://api.github.com/repos/bethlakshmi/GBE2/hooks","issue_events_url":"https://api.github.com/repos/bethlakshmi/GBE2/issues/events{/number}","events_url":"https://api.github.com/repos/bethlakshmi/GBE2/events","assignees_url":"https://api.github.com/repos/bethlakshmi/GBE2/assignees{/user}","branches_url":"https://api.github.com/repos/bethlakshmi/GBE2/branches{/branch}","tags_url":"https://api.github.com/repos/bethlakshmi/GBE2/tags","blobs_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/refs{/sha}","trees_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bethlakshmi/GBE2/statuses/{sha}","languages_url":"https://api.github.com/repos/bethlakshmi/GBE2/languages","stargazers_url":"https://api.github.com/repos/bethlakshmi/GBE2/stargazers","contributors_url":"https://api.github.com/repos/bethlakshmi/GBE2/contributors","subscribers_url":"https://api.github.com/repos/bethlakshmi/GBE2/subscribers","subscription_url":"https://api.github.com/repos/bethlakshmi/GBE2/subscription","commits_url":"https://api.github.com/repos/bethlakshmi/GBE2/commits{/sha}","git_commits_url":"https://api.github.com/repos/bethlakshmi/GBE2/git/commits{/sha}","comments_url":"https://api.github.com/repos/bethlakshmi/GBE2/comments{/number}","issue_comment_url":"https://api.github.com/repos/bethlakshmi/GBE2/issues/comments{/number}","contents_url":"https://api.github.com/repos/bethlakshmi/GBE2/contents/{+path}","compare_url":"https://api.github.com/repos/bethlakshmi/GBE2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bethlakshmi/GBE2/merges","archive_url":"https://api.github.com/repos/bethlakshmi/GBE2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bethlakshmi/GBE2/downloads","issues_url":"https://api.github.com/repos/bethlakshmi/GBE2/issues{/number}","pulls_url":"https://api.github.com/repos/bethlakshmi/GBE2/pulls{/number}","milestones_url":"https://api.github.com/repos/bethlakshmi/GBE2/milestones{/number}","notifications_url":"https://api.github.com/repos/bethlakshmi/GBE2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bethlakshmi/GBE2/labels{/name}","releases_url":"https://api.github.com/repos/bethlakshmi/GBE2/releases{/id}","created_at":"2014-03-01T22:14:43Z","updated_at":"2015-05-02T19:08:02Z","pushed_at":"2015-12-10T05:31:25Z","git_url":"git://github.com/bethlakshmi/GBE2.git","ssh_url":"git@github.com:bethlakshmi/GBE2.git","clone_url":"https://github.com/bethlakshmi/GBE2.git","svn_url":"https://github.com/bethlakshmi/GBE2","homepage":null,"size":8283,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":120,"forks":1,"open_issues":120,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/586"},"html":{"href":"https://github.com/bethlakshmi/GBE2/pull/586"},"issue":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/issues/586"},"comments":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/issues/586/comments"},"review_comments":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/586/comments"},"review_comment":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/pulls/586/commits"},"statuses":{"href":"https://api.github.com/repos/bethlakshmi/GBE2/statuses/3e11ae093dc181cc2036fbbbe27356f00c804c3e"}}}}