{"action":"created","comment":{"url":"https://api.github.com/repos/uclouvain/osis/pulls/comments/78356843","id":78356843,"diff_hunk":"@@ -32,6 +32,29 @@\n \n from django.utils.translation import ugettext_lazy as _\n \n+def set_number_choices(student_informations):\n+    for si in student_informations:\n+        student = mdl.student.find_by_person(si.person)\n+        choices = InternshipChoice.find_by_student(student)\n+        si.number_choices = len(choices)\n+        if student:\n+            si.registration_id = student.registration_id\n+","path":"internship/views/student_resume.py","position":11,"original_position":11,"commit_id":"221a105d637dbb2ea934add5a72c1f242c3f58e0","original_commit_id":"221a105d637dbb2ea934add5a72c1f242c3f58e0","user":{"login":"htmfilho","id":200272,"avatar_url":"https://avatars.githubusercontent.com/u/200272?v=3","gravatar_id":"","url":"https://api.github.com/users/htmfilho","html_url":"https://github.com/htmfilho","followers_url":"https://api.github.com/users/htmfilho/followers","following_url":"https://api.github.com/users/htmfilho/following{/other_user}","gists_url":"https://api.github.com/users/htmfilho/gists{/gist_id}","starred_url":"https://api.github.com/users/htmfilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmfilho/subscriptions","organizations_url":"https://api.github.com/users/htmfilho/orgs","repos_url":"https://api.github.com/users/htmfilho/repos","events_url":"https://api.github.com/users/htmfilho/events{/privacy}","received_events_url":"https://api.github.com/users/htmfilho/received_events","type":"User","site_admin":false},"body":"2 lignes de separation.","created_at":"2016-09-12T11:41:53Z","updated_at":"2016-09-12T11:41:53Z","html_url":"https://github.com/uclouvain/osis/pull/1289#discussion_r78356843","pull_request_url":"https://api.github.com/repos/uclouvain/osis/pulls/1289","_links":{"self":{"href":"https://api.github.com/repos/uclouvain/osis/pulls/comments/78356843"},"html":{"href":"https://github.com/uclouvain/osis/pull/1289#discussion_r78356843"},"pull_request":{"href":"https://api.github.com/repos/uclouvain/osis/pulls/1289"}}},"pull_request":{"url":"https://api.github.com/repos/uclouvain/osis/pulls/1289","id":83586348,"html_url":"https://github.com/uclouvain/osis/pull/1289","diff_url":"https://github.com/uclouvain/osis/pull/1289.diff","patch_url":"https://github.com/uclouvain/osis/pull/1289.patch","issue_url":"https://api.github.com/repos/uclouvain/osis/issues/1289","number":1289,"state":"open","locked":false,"title":"Adapter la fonction de recherche dans le bilan des étudiants (Issue#1284)","user":{"login":"Meojifo","id":15195497,"avatar_url":"https://avatars.githubusercontent.com/u/15195497?v=3","gravatar_id":"","url":"https://api.github.com/users/Meojifo","html_url":"https://github.com/Meojifo","followers_url":"https://api.github.com/users/Meojifo/followers","following_url":"https://api.github.com/users/Meojifo/following{/other_user}","gists_url":"https://api.github.com/users/Meojifo/gists{/gist_id}","starred_url":"https://api.github.com/users/Meojifo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meojifo/subscriptions","organizations_url":"https://api.github.com/users/Meojifo/orgs","repos_url":"https://api.github.com/users/Meojifo/repos","events_url":"https://api.github.com/users/Meojifo/events{/privacy}","received_events_url":"https://api.github.com/users/Meojifo/received_events","type":"User","site_admin":false},"body":"Inform the ticket you are solving in this pull request: #1284\r\n\r\nTo have your pull request accepted you have to make sure that:\r\n\r\n- [ ] it contains only **well formatted** code, using **4 spaces** for identation and a maximum of **120 characters** per line.\r\n- [x] classes, methods or function names are **not abreviated**.\r\n- [x] the code seems **readable for other developers** who will maintain this code in the future.\r\n- [ ] in case complexity is needed, then the code is very **well documented**.\r\n- [x] all files contain the **license header**.\r\n- [x] if a ***model*** is modified or created, ***fixtures*** files should be modified to reflect the modification.\r\n\r\n","created_at":"2016-09-01T07:57:31Z","updated_at":"2016-09-12T11:41:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8941f24f00754e3875012c9f28e2caa543e0103","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uclouvain/osis/pulls/1289/commits","review_comments_url":"https://api.github.com/repos/uclouvain/osis/pulls/1289/comments","review_comment_url":"https://api.github.com/repos/uclouvain/osis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uclouvain/osis/issues/1289/comments","statuses_url":"https://api.github.com/repos/uclouvain/osis/statuses/221a105d637dbb2ea934add5a72c1f242c3f58e0","head":{"label":"uclouvain:issue#1284","ref":"issue#1284","sha":"221a105d637dbb2ea934add5a72c1f242c3f58e0","user":{"login":"uclouvain","id":9862060,"avatar_url":"https://avatars.githubusercontent.com/u/9862060?v=3","gravatar_id":"","url":"https://api.github.com/users/uclouvain","html_url":"https://github.com/uclouvain","followers_url":"https://api.github.com/users/uclouvain/followers","following_url":"https://api.github.com/users/uclouvain/following{/other_user}","gists_url":"https://api.github.com/users/uclouvain/gists{/gist_id}","starred_url":"https://api.github.com/users/uclouvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uclouvain/subscriptions","organizations_url":"https://api.github.com/users/uclouvain/orgs","repos_url":"https://api.github.com/users/uclouvain/repos","events_url":"https://api.github.com/users/uclouvain/events{/privacy}","received_events_url":"https://api.github.com/users/uclouvain/received_events","type":"Organization","site_admin":false},"repo":{"id":37489388,"name":"osis","full_name":"uclouvain/osis","owner":{"login":"uclouvain","id":9862060,"avatar_url":"https://avatars.githubusercontent.com/u/9862060?v=3","gravatar_id":"","url":"https://api.github.com/users/uclouvain","html_url":"https://github.com/uclouvain","followers_url":"https://api.github.com/users/uclouvain/followers","following_url":"https://api.github.com/users/uclouvain/following{/other_user}","gists_url":"https://api.github.com/users/uclouvain/gists{/gist_id}","starred_url":"https://api.github.com/users/uclouvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uclouvain/subscriptions","organizations_url":"https://api.github.com/users/uclouvain/orgs","repos_url":"https://api.github.com/users/uclouvain/repos","events_url":"https://api.github.com/users/uclouvain/events{/privacy}","received_events_url":"https://api.github.com/users/uclouvain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uclouvain/osis","description":"Open Student Information System","fork":false,"url":"https://api.github.com/repos/uclouvain/osis","forks_url":"https://api.github.com/repos/uclouvain/osis/forks","keys_url":"https://api.github.com/repos/uclouvain/osis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uclouvain/osis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uclouvain/osis/teams","hooks_url":"https://api.github.com/repos/uclouvain/osis/hooks","issue_events_url":"https://api.github.com/repos/uclouvain/osis/issues/events{/number}","events_url":"https://api.github.com/repos/uclouvain/osis/events","assignees_url":"https://api.github.com/repos/uclouvain/osis/assignees{/user}","branches_url":"https://api.github.com/repos/uclouvain/osis/branches{/branch}","tags_url":"https://api.github.com/repos/uclouvain/osis/tags","blobs_url":"https://api.github.com/repos/uclouvain/osis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uclouvain/osis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uclouvain/osis/git/refs{/sha}","trees_url":"https://api.github.com/repos/uclouvain/osis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uclouvain/osis/statuses/{sha}","languages_url":"https://api.github.com/repos/uclouvain/osis/languages","stargazers_url":"https://api.github.com/repos/uclouvain/osis/stargazers","contributors_url":"https://api.github.com/repos/uclouvain/osis/contributors","subscribers_url":"https://api.github.com/repos/uclouvain/osis/subscribers","subscription_url":"https://api.github.com/repos/uclouvain/osis/subscription","commits_url":"https://api.github.com/repos/uclouvain/osis/commits{/sha}","git_commits_url":"https://api.github.com/repos/uclouvain/osis/git/commits{/sha}","comments_url":"https://api.github.com/repos/uclouvain/osis/comments{/number}","issue_comment_url":"https://api.github.com/repos/uclouvain/osis/issues/comments{/number}","contents_url":"https://api.github.com/repos/uclouvain/osis/contents/{+path}","compare_url":"https://api.github.com/repos/uclouvain/osis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uclouvain/osis/merges","archive_url":"https://api.github.com/repos/uclouvain/osis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uclouvain/osis/downloads","issues_url":"https://api.github.com/repos/uclouvain/osis/issues{/number}","pulls_url":"https://api.github.com/repos/uclouvain/osis/pulls{/number}","milestones_url":"https://api.github.com/repos/uclouvain/osis/milestones{/number}","notifications_url":"https://api.github.com/repos/uclouvain/osis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uclouvain/osis/labels{/name}","releases_url":"https://api.github.com/repos/uclouvain/osis/releases{/id}","deployments_url":"https://api.github.com/repos/uclouvain/osis/deployments","created_at":"2015-06-15T20:25:28Z","updated_at":"2016-05-30T14:47:51Z","pushed_at":"2016-09-12T11:32:54Z","git_url":"git://github.com/uclouvain/osis.git","ssh_url":"git@github.com:uclouvain/osis.git","clone_url":"https://github.com/uclouvain/osis.git","svn_url":"https://github.com/uclouvain/osis","homepage":"http://uclouvain.github.io/osis","size":17064,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":99,"forks":7,"open_issues":99,"watchers":8,"default_branch":"dev"}},"base":{"label":"uclouvain:dev","ref":"dev","sha":"86ecbb49b3c7d3af2e57f45951238141703c2c62","user":{"login":"uclouvain","id":9862060,"avatar_url":"https://avatars.githubusercontent.com/u/9862060?v=3","gravatar_id":"","url":"https://api.github.com/users/uclouvain","html_url":"https://github.com/uclouvain","followers_url":"https://api.github.com/users/uclouvain/followers","following_url":"https://api.github.com/users/uclouvain/following{/other_user}","gists_url":"https://api.github.com/users/uclouvain/gists{/gist_id}","starred_url":"https://api.github.com/users/uclouvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uclouvain/subscriptions","organizations_url":"https://api.github.com/users/uclouvain/orgs","repos_url":"https://api.github.com/users/uclouvain/repos","events_url":"https://api.github.com/users/uclouvain/events{/privacy}","received_events_url":"https://api.github.com/users/uclouvain/received_events","type":"Organization","site_admin":false},"repo":{"id":37489388,"name":"osis","full_name":"uclouvain/osis","owner":{"login":"uclouvain","id":9862060,"avatar_url":"https://avatars.githubusercontent.com/u/9862060?v=3","gravatar_id":"","url":"https://api.github.com/users/uclouvain","html_url":"https://github.com/uclouvain","followers_url":"https://api.github.com/users/uclouvain/followers","following_url":"https://api.github.com/users/uclouvain/following{/other_user}","gists_url":"https://api.github.com/users/uclouvain/gists{/gist_id}","starred_url":"https://api.github.com/users/uclouvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uclouvain/subscriptions","organizations_url":"https://api.github.com/users/uclouvain/orgs","repos_url":"https://api.github.com/users/uclouvain/repos","events_url":"https://api.github.com/users/uclouvain/events{/privacy}","received_events_url":"https://api.github.com/users/uclouvain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uclouvain/osis","description":"Open Student Information System","fork":false,"url":"https://api.github.com/repos/uclouvain/osis","forks_url":"https://api.github.com/repos/uclouvain/osis/forks","keys_url":"https://api.github.com/repos/uclouvain/osis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uclouvain/osis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uclouvain/osis/teams","hooks_url":"https://api.github.com/repos/uclouvain/osis/hooks","issue_events_url":"https://api.github.com/repos/uclouvain/osis/issues/events{/number}","events_url":"https://api.github.com/repos/uclouvain/osis/events","assignees_url":"https://api.github.com/repos/uclouvain/osis/assignees{/user}","branches_url":"https://api.github.com/repos/uclouvain/osis/branches{/branch}","tags_url":"https://api.github.com/repos/uclouvain/osis/tags","blobs_url":"https://api.github.com/repos/uclouvain/osis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uclouvain/osis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uclouvain/osis/git/refs{/sha}","trees_url":"https://api.github.com/repos/uclouvain/osis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uclouvain/osis/statuses/{sha}","languages_url":"https://api.github.com/repos/uclouvain/osis/languages","stargazers_url":"https://api.github.com/repos/uclouvain/osis/stargazers","contributors_url":"https://api.github.com/repos/uclouvain/osis/contributors","subscribers_url":"https://api.github.com/repos/uclouvain/osis/subscribers","subscription_url":"https://api.github.com/repos/uclouvain/osis/subscription","commits_url":"https://api.github.com/repos/uclouvain/osis/commits{/sha}","git_commits_url":"https://api.github.com/repos/uclouvain/osis/git/commits{/sha}","comments_url":"https://api.github.com/repos/uclouvain/osis/comments{/number}","issue_comment_url":"https://api.github.com/repos/uclouvain/osis/issues/comments{/number}","contents_url":"https://api.github.com/repos/uclouvain/osis/contents/{+path}","compare_url":"https://api.github.com/repos/uclouvain/osis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uclouvain/osis/merges","archive_url":"https://api.github.com/repos/uclouvain/osis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uclouvain/osis/downloads","issues_url":"https://api.github.com/repos/uclouvain/osis/issues{/number}","pulls_url":"https://api.github.com/repos/uclouvain/osis/pulls{/number}","milestones_url":"https://api.github.com/repos/uclouvain/osis/milestones{/number}","notifications_url":"https://api.github.com/repos/uclouvain/osis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uclouvain/osis/labels{/name}","releases_url":"https://api.github.com/repos/uclouvain/osis/releases{/id}","deployments_url":"https://api.github.com/repos/uclouvain/osis/deployments","created_at":"2015-06-15T20:25:28Z","updated_at":"2016-05-30T14:47:51Z","pushed_at":"2016-09-12T11:32:54Z","git_url":"git://github.com/uclouvain/osis.git","ssh_url":"git@github.com:uclouvain/osis.git","clone_url":"https://github.com/uclouvain/osis.git","svn_url":"https://github.com/uclouvain/osis","homepage":"http://uclouvain.github.io/osis","size":17064,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":99,"forks":7,"open_issues":99,"watchers":8,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/uclouvain/osis/pulls/1289"},"html":{"href":"https://github.com/uclouvain/osis/pull/1289"},"issue":{"href":"https://api.github.com/repos/uclouvain/osis/issues/1289"},"comments":{"href":"https://api.github.com/repos/uclouvain/osis/issues/1289/comments"},"review_comments":{"href":"https://api.github.com/repos/uclouvain/osis/pulls/1289/comments"},"review_comment":{"href":"https://api.github.com/repos/uclouvain/osis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uclouvain/osis/pulls/1289/commits"},"statuses":{"href":"https://api.github.com/repos/uclouvain/osis/statuses/221a105d637dbb2ea934add5a72c1f242c3f58e0"}}}}
{"actor":{"display_login":"htmfilho"}}