{"action":"created","comment":{"url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/comments/60753188","id":60753188,"diff_hunk":"@@ -26,47 +28,47 @@ def sostenitori_cri(queryset):\n \n \n def aspiranti_volontari_iscritti_ad_un_corso(queryset):\n-    pass\n+    return queryset.filter(aspirante__isnull=False, partecipazioni_corsi__isnull=False)\n \n \n def tutti_i_presidenti(queryset):\n-    pass\n+    return queryset.filter(delega__tipo=PRESIDENTE)\n \n \n def presidenti_comitati_locali(queryset):\n-    pass\n+    return tutti_i_presidenti(queryset).filter(appartenenze__sede__tipo=Sede.COMITATO, appartenenze__sede__estensione=LOCALE)","path":"segmenti/segmenti.py","position":null,"original_position":23,"commit_id":"315855a4998478effce658d963ec6a578761dbe4","original_commit_id":"88c99e6870bc5b26e8fc9a4b81a7262b086e2ddd","user":{"login":"AlfioEmanueleFresta","id":621062,"avatar_url":"https://avatars.githubusercontent.com/u/621062?v=3","gravatar_id":"","url":"https://api.github.com/users/AlfioEmanueleFresta","html_url":"https://github.com/AlfioEmanueleFresta","followers_url":"https://api.github.com/users/AlfioEmanueleFresta/followers","following_url":"https://api.github.com/users/AlfioEmanueleFresta/following{/other_user}","gists_url":"https://api.github.com/users/AlfioEmanueleFresta/gists{/gist_id}","starred_url":"https://api.github.com/users/AlfioEmanueleFresta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlfioEmanueleFresta/subscriptions","organizations_url":"https://api.github.com/users/AlfioEmanueleFresta/orgs","repos_url":"https://api.github.com/users/AlfioEmanueleFresta/repos","events_url":"https://api.github.com/users/AlfioEmanueleFresta/events{/privacy}","received_events_url":"https://api.github.com/users/AlfioEmanueleFresta/received_events","type":"User","site_admin":false},"body":"Le appartenenze (volontario, sostenitore, ...) sono da considerare separate rispetto alle deleghe (presidente sede, referente attivita, ...). In alcuni casi, un volontario presso un Comitato puo' essere presidente presso un altro.\r\n\r\nIl modo corretto per trovare i Comitati legali sarebbe seguendo la relazione `deleghe` (da `anagrafica.models.Delega`), piuttosto che `appartenenze`. Notate pero' che `Delega` e' correlata a `oggetto`, che puo' essere una Sede. Questa e' pero una relazione generica (tramite `oggetto_tipo`, che deve corrispondere al ContentType corrispondente alla Sede, e `oggetto_id`).\r\n\r\nSe preferite possiamo sentirci telefonicamente/hangout in merito","created_at":"2016-04-22T15:02:00Z","updated_at":"2016-04-22T15:02:00Z","html_url":"https://github.com/CroceRossaItaliana/jorvik/pull/230#discussion_r60753188","pull_request_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/230","_links":{"self":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/comments/60753188"},"html":{"href":"https://github.com/CroceRossaItaliana/jorvik/pull/230#discussion_r60753188"},"pull_request":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/230"}}},"pull_request":{"url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/230","id":67524359,"html_url":"https://github.com/CroceRossaItaliana/jorvik/pull/230","diff_url":"https://github.com/CroceRossaItaliana/jorvik/pull/230.diff","patch_url":"https://github.com/CroceRossaItaliana/jorvik/pull/230.patch","issue_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/issues/230","number":230,"state":"open","locked":false,"title":"WIP: Applicazione segmenti","user":{"login":"fmarco","id":7735024,"avatar_url":"https://avatars.githubusercontent.com/u/7735024?v=3","gravatar_id":"","url":"https://api.github.com/users/fmarco","html_url":"https://github.com/fmarco","followers_url":"https://api.github.com/users/fmarco/followers","following_url":"https://api.github.com/users/fmarco/following{/other_user}","gists_url":"https://api.github.com/users/fmarco/gists{/gist_id}","starred_url":"https://api.github.com/users/fmarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmarco/subscriptions","organizations_url":"https://api.github.com/users/fmarco/orgs","repos_url":"https://api.github.com/users/fmarco/repos","events_url":"https://api.github.com/users/fmarco/events{/privacy}","received_events_url":"https://api.github.com/users/fmarco/received_events","type":"User","site_admin":false},"body":"Implementazione dell'applicazione Segmenti (Work in progress).\r\nManca l'implementazione di qualche test.","created_at":"2016-04-22T14:54:10Z","updated_at":"2016-04-22T15:02:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cec3f45e41bc6a86016e18004a6581d5f8f24c18","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/230/commits","review_comments_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/230/comments","review_comment_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/issues/230/comments","statuses_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/statuses/315855a4998478effce658d963ec6a578761dbe4","head":{"label":"nephila:applicazione_segmenti","ref":"applicazione_segmenti","sha":"315855a4998478effce658d963ec6a578761dbe4","user":{"login":"nephila","id":630341,"avatar_url":"https://avatars.githubusercontent.com/u/630341?v=3","gravatar_id":"","url":"https://api.github.com/users/nephila","html_url":"https://github.com/nephila","followers_url":"https://api.github.com/users/nephila/followers","following_url":"https://api.github.com/users/nephila/following{/other_user}","gists_url":"https://api.github.com/users/nephila/gists{/gist_id}","starred_url":"https://api.github.com/users/nephila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nephila/subscriptions","organizations_url":"https://api.github.com/users/nephila/orgs","repos_url":"https://api.github.com/users/nephila/repos","events_url":"https://api.github.com/users/nephila/events{/privacy}","received_events_url":"https://api.github.com/users/nephila/received_events","type":"Organization","site_admin":false},"repo":{"id":56133919,"name":"jorvik","full_name":"nephila/jorvik","owner":{"login":"nephila","id":630341,"avatar_url":"https://avatars.githubusercontent.com/u/630341?v=3","gravatar_id":"","url":"https://api.github.com/users/nephila","html_url":"https://github.com/nephila","followers_url":"https://api.github.com/users/nephila/followers","following_url":"https://api.github.com/users/nephila/following{/other_user}","gists_url":"https://api.github.com/users/nephila/gists{/gist_id}","starred_url":"https://api.github.com/users/nephila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nephila/subscriptions","organizations_url":"https://api.github.com/users/nephila/orgs","repos_url":"https://api.github.com/users/nephila/repos","events_url":"https://api.github.com/users/nephila/events{/privacy}","received_events_url":"https://api.github.com/users/nephila/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nephila/jorvik","description":"Jorvik è la seconda e ultima versione del software del Progetto Gaia di Croce Rossa Italiana. GAIA è l'acronimo di \"Gestione Avanzata ed Integrata dell'Anagrafica\", nonché il nome di un pianeta dalla fantasia di Isaac Asimov.","fork":true,"url":"https://api.github.com/repos/nephila/jorvik","forks_url":"https://api.github.com/repos/nephila/jorvik/forks","keys_url":"https://api.github.com/repos/nephila/jorvik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nephila/jorvik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nephila/jorvik/teams","hooks_url":"https://api.github.com/repos/nephila/jorvik/hooks","issue_events_url":"https://api.github.com/repos/nephila/jorvik/issues/events{/number}","events_url":"https://api.github.com/repos/nephila/jorvik/events","assignees_url":"https://api.github.com/repos/nephila/jorvik/assignees{/user}","branches_url":"https://api.github.com/repos/nephila/jorvik/branches{/branch}","tags_url":"https://api.github.com/repos/nephila/jorvik/tags","blobs_url":"https://api.github.com/repos/nephila/jorvik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nephila/jorvik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nephila/jorvik/git/refs{/sha}","trees_url":"https://api.github.com/repos/nephila/jorvik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nephila/jorvik/statuses/{sha}","languages_url":"https://api.github.com/repos/nephila/jorvik/languages","stargazers_url":"https://api.github.com/repos/nephila/jorvik/stargazers","contributors_url":"https://api.github.com/repos/nephila/jorvik/contributors","subscribers_url":"https://api.github.com/repos/nephila/jorvik/subscribers","subscription_url":"https://api.github.com/repos/nephila/jorvik/subscription","commits_url":"https://api.github.com/repos/nephila/jorvik/commits{/sha}","git_commits_url":"https://api.github.com/repos/nephila/jorvik/git/commits{/sha}","comments_url":"https://api.github.com/repos/nephila/jorvik/comments{/number}","issue_comment_url":"https://api.github.com/repos/nephila/jorvik/issues/comments{/number}","contents_url":"https://api.github.com/repos/nephila/jorvik/contents/{+path}","compare_url":"https://api.github.com/repos/nephila/jorvik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nephila/jorvik/merges","archive_url":"https://api.github.com/repos/nephila/jorvik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nephila/jorvik/downloads","issues_url":"https://api.github.com/repos/nephila/jorvik/issues{/number}","pulls_url":"https://api.github.com/repos/nephila/jorvik/pulls{/number}","milestones_url":"https://api.github.com/repos/nephila/jorvik/milestones{/number}","notifications_url":"https://api.github.com/repos/nephila/jorvik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nephila/jorvik/labels{/name}","releases_url":"https://api.github.com/repos/nephila/jorvik/releases{/id}","deployments_url":"https://api.github.com/repos/nephila/jorvik/deployments","created_at":"2016-04-13T08:20:42Z","updated_at":"2016-04-13T08:20:45Z","pushed_at":"2016-04-22T14:43:06Z","git_url":"git://github.com/nephila/jorvik.git","ssh_url":"git@github.com:nephila/jorvik.git","clone_url":"https://github.com/nephila/jorvik.git","svn_url":"https://github.com/nephila/jorvik","homepage":"https://gaia.cri.it","size":6004,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"CroceRossaItaliana:master","ref":"master","sha":"88e7e8805e587c83581227522eac691157ffcb82","user":{"login":"CroceRossaItaliana","id":5073858,"avatar_url":"https://avatars.githubusercontent.com/u/5073858?v=3","gravatar_id":"","url":"https://api.github.com/users/CroceRossaItaliana","html_url":"https://github.com/CroceRossaItaliana","followers_url":"https://api.github.com/users/CroceRossaItaliana/followers","following_url":"https://api.github.com/users/CroceRossaItaliana/following{/other_user}","gists_url":"https://api.github.com/users/CroceRossaItaliana/gists{/gist_id}","starred_url":"https://api.github.com/users/CroceRossaItaliana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CroceRossaItaliana/subscriptions","organizations_url":"https://api.github.com/users/CroceRossaItaliana/orgs","repos_url":"https://api.github.com/users/CroceRossaItaliana/repos","events_url":"https://api.github.com/users/CroceRossaItaliana/events{/privacy}","received_events_url":"https://api.github.com/users/CroceRossaItaliana/received_events","type":"Organization","site_admin":false},"repo":{"id":31330265,"name":"jorvik","full_name":"CroceRossaItaliana/jorvik","owner":{"login":"CroceRossaItaliana","id":5073858,"avatar_url":"https://avatars.githubusercontent.com/u/5073858?v=3","gravatar_id":"","url":"https://api.github.com/users/CroceRossaItaliana","html_url":"https://github.com/CroceRossaItaliana","followers_url":"https://api.github.com/users/CroceRossaItaliana/followers","following_url":"https://api.github.com/users/CroceRossaItaliana/following{/other_user}","gists_url":"https://api.github.com/users/CroceRossaItaliana/gists{/gist_id}","starred_url":"https://api.github.com/users/CroceRossaItaliana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CroceRossaItaliana/subscriptions","organizations_url":"https://api.github.com/users/CroceRossaItaliana/orgs","repos_url":"https://api.github.com/users/CroceRossaItaliana/repos","events_url":"https://api.github.com/users/CroceRossaItaliana/events{/privacy}","received_events_url":"https://api.github.com/users/CroceRossaItaliana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CroceRossaItaliana/jorvik","description":"Jorvik è la seconda e ultima versione del software del Progetto Gaia di Croce Rossa Italiana. GAIA è l'acronimo di \"Gestione Avanzata ed Integrata dell'Anagrafica\", nonché il nome di un pianeta dalla fantasia di Isaac Asimov.","fork":false,"url":"https://api.github.com/repos/CroceRossaItaliana/jorvik","forks_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/forks","keys_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/teams","hooks_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/hooks","issue_events_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/issues/events{/number}","events_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/events","assignees_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/assignees{/user}","branches_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/branches{/branch}","tags_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/tags","blobs_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/git/refs{/sha}","trees_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/statuses/{sha}","languages_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/languages","stargazers_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/stargazers","contributors_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/contributors","subscribers_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/subscribers","subscription_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/subscription","commits_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/commits{/sha}","git_commits_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/git/commits{/sha}","comments_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/comments{/number}","issue_comment_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/issues/comments{/number}","contents_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/contents/{+path}","compare_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/merges","archive_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/downloads","issues_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/issues{/number}","pulls_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls{/number}","milestones_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/milestones{/number}","notifications_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/labels{/name}","releases_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/releases{/id}","deployments_url":"https://api.github.com/repos/CroceRossaItaliana/jorvik/deployments","created_at":"2015-02-25T18:53:47Z","updated_at":"2016-03-29T09:28:33Z","pushed_at":"2016-04-22T14:54:11Z","git_url":"git://github.com/CroceRossaItaliana/jorvik.git","ssh_url":"git@github.com:CroceRossaItaliana/jorvik.git","clone_url":"https://github.com/CroceRossaItaliana/jorvik.git","svn_url":"https://github.com/CroceRossaItaliana/jorvik","homepage":"https://gaia.cri.it","size":5950,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":32,"forks":2,"open_issues":32,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/230"},"html":{"href":"https://github.com/CroceRossaItaliana/jorvik/pull/230"},"issue":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/issues/230"},"comments":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/issues/230/comments"},"review_comments":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/230/comments"},"review_comment":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/pulls/230/commits"},"statuses":{"href":"https://api.github.com/repos/CroceRossaItaliana/jorvik/statuses/315855a4998478effce658d963ec6a578761dbe4"}}}}