{"action":"created","comment":{"url":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/comments/63175330","id":63175330,"diff_hunk":"@@ -0,0 +1,7 @@\n+from django import template\n+\n+register = template.Library()\n+\n+@register.filter\n+def price_for_user(aktivitet, user):\n+    return aktivitet.get_price_for_user(user)","path":"apps/aktiviteter/templatetags/price_for_user.py","position":7,"original_position":7,"commit_id":"97b4abc3e454e495d7bc21a214685f15fabfcda0","original_commit_id":"97b4abc3e454e495d7bc21a214685f15fabfcda0","user":{"login":"Starefossen","id":968267,"avatar_url":"https://avatars.githubusercontent.com/u/968267?v=3","gravatar_id":"","url":"https://api.github.com/users/Starefossen","html_url":"https://github.com/Starefossen","followers_url":"https://api.github.com/users/Starefossen/followers","following_url":"https://api.github.com/users/Starefossen/following{/other_user}","gists_url":"https://api.github.com/users/Starefossen/gists{/gist_id}","starred_url":"https://api.github.com/users/Starefossen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starefossen/subscriptions","organizations_url":"https://api.github.com/users/Starefossen/orgs","repos_url":"https://api.github.com/users/Starefossen/repos","events_url":"https://api.github.com/users/Starefossen/events{/privacy}","received_events_url":"https://api.github.com/users/Starefossen/received_events","type":"User","site_admin":false},"body":"Hvordan blir dette mhp. `n+1` spørringer? vil `get_price_for_user()` hente ut alle priser for aktiviteten og matche mot brukeren for hvert sted template filteret benyttes?","created_at":"2016-05-13T12:38:25Z","updated_at":"2016-05-13T12:38:25Z","html_url":"https://github.com/Turistforeningen/sherpa/pull/134#discussion_r63175330","pull_request_url":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/comments/63175330"},"html":{"href":"https://github.com/Turistforeningen/sherpa/pull/134#discussion_r63175330"},"pull_request":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/134","id":69988095,"html_url":"https://github.com/Turistforeningen/sherpa/pull/134","diff_url":"https://github.com/Turistforeningen/sherpa/pull/134.diff","patch_url":"https://github.com/Turistforeningen/sherpa/pull/134.patch","issue_url":"https://api.github.com/repos/Turistforeningen/sherpa/issues/134","number":134,"state":"open","locked":false,"title":"Aktiviteter: Familiepåmelding","user":{"login":"kvikshaug","id":64745,"avatar_url":"https://avatars.githubusercontent.com/u/64745?v=3","gravatar_id":"","url":"https://api.github.com/users/kvikshaug","html_url":"https://github.com/kvikshaug","followers_url":"https://api.github.com/users/kvikshaug/followers","following_url":"https://api.github.com/users/kvikshaug/following{/other_user}","gists_url":"https://api.github.com/users/kvikshaug/gists{/gist_id}","starred_url":"https://api.github.com/users/kvikshaug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvikshaug/subscriptions","organizations_url":"https://api.github.com/users/kvikshaug/orgs","repos_url":"https://api.github.com/users/kvikshaug/repos","events_url":"https://api.github.com/users/kvikshaug/events{/privacy}","received_events_url":"https://api.github.com/users/kvikshaug/received_events","type":"User","site_admin":false},"body":"* [x] List ut familiemedlemmer ved påmelding\r\n* [x] Enkelt melde på resten av familien\r\n* [x] Presentere prissammendrag hvis betaling\r\n* [x] Valideringer\r\n  * [x] Krever kontaktinformasjon av alle påmeldte\r\n  * [x] Gruppa får plass kun hvis alle deltakere i gruppa får plass\r\n* [ ] Designtilpasninger/UI\r\n  * [ ] Tydelig separere påmeldte/ikke påmeldte familiemedlemmer\r\n  * [ ] Tydeliggjøre manglende kontaktinformasjon\r\n* [ ] Optimisere SQL prefetches\r\n* [ ] Tester\r\n* [ ] Admin\r\n\r\n* `SignupSession` klasse er datagrunnlag for påmeldingssesjonen\r\n  * Singleton instansieres per request\r\n  * Henter og lagrer state i brukerens sesjon\r\n  * Håndterer validering\r\n\r\n![image](https://cloud.githubusercontent.com/assets/64745/15247743/751d2086-1916-11e6-8f8e-468f039f0b8d.png)\r\n","created_at":"2016-05-13T12:30:21Z","updated_at":"2016-05-13T12:38:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd6ba8c375a57fdb562c41172593e1af6df9016d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/134/commits","review_comments_url":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/134/comments","review_comment_url":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Turistforeningen/sherpa/issues/134/comments","statuses_url":"https://api.github.com/repos/Turistforeningen/sherpa/statuses/97b4abc3e454e495d7bc21a214685f15fabfcda0","head":{"label":"Turistforeningen:aktiviteter-family-signup","ref":"aktiviteter-family-signup","sha":"97b4abc3e454e495d7bc21a214685f15fabfcda0","user":{"login":"Turistforeningen","id":1188810,"avatar_url":"https://avatars.githubusercontent.com/u/1188810?v=3","gravatar_id":"","url":"https://api.github.com/users/Turistforeningen","html_url":"https://github.com/Turistforeningen","followers_url":"https://api.github.com/users/Turistforeningen/followers","following_url":"https://api.github.com/users/Turistforeningen/following{/other_user}","gists_url":"https://api.github.com/users/Turistforeningen/gists{/gist_id}","starred_url":"https://api.github.com/users/Turistforeningen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Turistforeningen/subscriptions","organizations_url":"https://api.github.com/users/Turistforeningen/orgs","repos_url":"https://api.github.com/users/Turistforeningen/repos","events_url":"https://api.github.com/users/Turistforeningen/events{/privacy}","received_events_url":"https://api.github.com/users/Turistforeningen/received_events","type":"Organization","site_admin":false},"repo":{"id":2598605,"name":"sherpa","full_name":"Turistforeningen/sherpa","owner":{"login":"Turistforeningen","id":1188810,"avatar_url":"https://avatars.githubusercontent.com/u/1188810?v=3","gravatar_id":"","url":"https://api.github.com/users/Turistforeningen","html_url":"https://github.com/Turistforeningen","followers_url":"https://api.github.com/users/Turistforeningen/followers","following_url":"https://api.github.com/users/Turistforeningen/following{/other_user}","gists_url":"https://api.github.com/users/Turistforeningen/gists{/gist_id}","starred_url":"https://api.github.com/users/Turistforeningen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Turistforeningen/subscriptions","organizations_url":"https://api.github.com/users/Turistforeningen/orgs","repos_url":"https://api.github.com/users/Turistforeningen/repos","events_url":"https://api.github.com/users/Turistforeningen/events{/privacy}","received_events_url":"https://api.github.com/users/Turistforeningen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Turistforeningen/sherpa","description":"The django-based website and CMS for the Norwegian Trekking Association (DNT)","fork":false,"url":"https://api.github.com/repos/Turistforeningen/sherpa","forks_url":"https://api.github.com/repos/Turistforeningen/sherpa/forks","keys_url":"https://api.github.com/repos/Turistforeningen/sherpa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Turistforeningen/sherpa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Turistforeningen/sherpa/teams","hooks_url":"https://api.github.com/repos/Turistforeningen/sherpa/hooks","issue_events_url":"https://api.github.com/repos/Turistforeningen/sherpa/issues/events{/number}","events_url":"https://api.github.com/repos/Turistforeningen/sherpa/events","assignees_url":"https://api.github.com/repos/Turistforeningen/sherpa/assignees{/user}","branches_url":"https://api.github.com/repos/Turistforeningen/sherpa/branches{/branch}","tags_url":"https://api.github.com/repos/Turistforeningen/sherpa/tags","blobs_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/refs{/sha}","trees_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Turistforeningen/sherpa/statuses/{sha}","languages_url":"https://api.github.com/repos/Turistforeningen/sherpa/languages","stargazers_url":"https://api.github.com/repos/Turistforeningen/sherpa/stargazers","contributors_url":"https://api.github.com/repos/Turistforeningen/sherpa/contributors","subscribers_url":"https://api.github.com/repos/Turistforeningen/sherpa/subscribers","subscription_url":"https://api.github.com/repos/Turistforeningen/sherpa/subscription","commits_url":"https://api.github.com/repos/Turistforeningen/sherpa/commits{/sha}","git_commits_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/commits{/sha}","comments_url":"https://api.github.com/repos/Turistforeningen/sherpa/comments{/number}","issue_comment_url":"https://api.github.com/repos/Turistforeningen/sherpa/issues/comments{/number}","contents_url":"https://api.github.com/repos/Turistforeningen/sherpa/contents/{+path}","compare_url":"https://api.github.com/repos/Turistforeningen/sherpa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Turistforeningen/sherpa/merges","archive_url":"https://api.github.com/repos/Turistforeningen/sherpa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Turistforeningen/sherpa/downloads","issues_url":"https://api.github.com/repos/Turistforeningen/sherpa/issues{/number}","pulls_url":"https://api.github.com/repos/Turistforeningen/sherpa/pulls{/number}","milestones_url":"https://api.github.com/repos/Turistforeningen/sherpa/milestones{/number}","notifications_url":"https://api.github.com/repos/Turistforeningen/sherpa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Turistforeningen/sherpa/labels{/name}","releases_url":"https://api.github.com/repos/Turistforeningen/sherpa/releases{/id}","deployments_url":"https://api.github.com/repos/Turistforeningen/sherpa/deployments","created_at":"2011-10-18T11:56:33Z","updated_at":"2016-03-18T10:34:41Z","pushed_at":"2016-05-13T12:30:22Z","git_url":"git://github.com/Turistforeningen/sherpa.git","ssh_url":"git@github.com:Turistforeningen/sherpa.git","clone_url":"https://github.com/Turistforeningen/sherpa.git","svn_url":"https://github.com/Turistforeningen/sherpa","homepage":"https://www.dnt.no","size":65901,"stargazers_count":5,"watchers_count":5,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"Turistforeningen:master","ref":"master","sha":"ba0fbab933aaa03f5cd1fb79c79ed49d07264123","user":{"login":"Turistforeningen","id":1188810,"avatar_url":"https://avatars.githubusercontent.com/u/1188810?v=3","gravatar_id":"","url":"https://api.github.com/users/Turistforeningen","html_url":"https://github.com/Turistforeningen","followers_url":"https://api.github.com/users/Turistforeningen/followers","following_url":"https://api.github.com/users/Turistforeningen/following{/other_user}","gists_url":"https://api.github.com/users/Turistforeningen/gists{/gist_id}","starred_url":"https://api.github.com/users/Turistforeningen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Turistforeningen/subscriptions","organizations_url":"https://api.github.com/users/Turistforeningen/orgs","repos_url":"https://api.github.com/users/Turistforeningen/repos","events_url":"https://api.github.com/users/Turistforeningen/events{/privacy}","received_events_url":"https://api.github.com/users/Turistforeningen/received_events","type":"Organization","site_admin":false},"repo":{"id":2598605,"name":"sherpa","full_name":"Turistforeningen/sherpa","owner":{"login":"Turistforeningen","id":1188810,"avatar_url":"https://avatars.githubusercontent.com/u/1188810?v=3","gravatar_id":"","url":"https://api.github.com/users/Turistforeningen","html_url":"https://github.com/Turistforeningen","followers_url":"https://api.github.com/users/Turistforeningen/followers","following_url":"https://api.github.com/users/Turistforeningen/following{/other_user}","gists_url":"https://api.github.com/users/Turistforeningen/gists{/gist_id}","starred_url":"https://api.github.com/users/Turistforeningen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Turistforeningen/subscriptions","organizations_url":"https://api.github.com/users/Turistforeningen/orgs","repos_url":"https://api.github.com/users/Turistforeningen/repos","events_url":"https://api.github.com/users/Turistforeningen/events{/privacy}","received_events_url":"https://api.github.com/users/Turistforeningen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Turistforeningen/sherpa","description":"The django-based website and CMS for the Norwegian Trekking Association (DNT)","fork":false,"url":"https://api.github.com/repos/Turistforeningen/sherpa","forks_url":"https://api.github.com/repos/Turistforeningen/sherpa/forks","keys_url":"https://api.github.com/repos/Turistforeningen/sherpa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Turistforeningen/sherpa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Turistforeningen/sherpa/teams","hooks_url":"https://api.github.com/repos/Turistforeningen/sherpa/hooks","issue_events_url":"https://api.github.com/repos/Turistforeningen/sherpa/issues/events{/number}","events_url":"https://api.github.com/repos/Turistforeningen/sherpa/events","assignees_url":"https://api.github.com/repos/Turistforeningen/sherpa/assignees{/user}","branches_url":"https://api.github.com/repos/Turistforeningen/sherpa/branches{/branch}","tags_url":"https://api.github.com/repos/Turistforeningen/sherpa/tags","blobs_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/refs{/sha}","trees_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Turistforeningen/sherpa/statuses/{sha}","languages_url":"https://api.github.com/repos/Turistforeningen/sherpa/languages","stargazers_url":"https://api.github.com/repos/Turistforeningen/sherpa/stargazers","contributors_url":"https://api.github.com/repos/Turistforeningen/sherpa/contributors","subscribers_url":"https://api.github.com/repos/Turistforeningen/sherpa/subscribers","subscription_url":"https://api.github.com/repos/Turistforeningen/sherpa/subscription","commits_url":"https://api.github.com/repos/Turistforeningen/sherpa/commits{/sha}","git_commits_url":"https://api.github.com/repos/Turistforeningen/sherpa/git/commits{/sha}","comments_url":"https://api.github.com/repos/Turistforeningen/sherpa/comments{/number}","issue_comment_url":"https://api.github.com/repos/Turistforeningen/sherpa/issues/comments{/number}","contents_url":"https://api.github.com/repos/Turistforeningen/sherpa/contents/{+path}","compare_url":"https://api.github.com/repos/Turistforeningen/sherpa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Turistforeningen/sherpa/merges","archive_url":"https://api.github.com/repos/Turistforeningen/sherpa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Turistforeningen/sherpa/downloads","issues_url":"https://api.github.com/repos/Turistforeningen/sherpa/issues{/number}","pulls_url":"https://api.github.com/repos/Turistforeningen/sherpa/pulls{/number}","milestones_url":"https://api.github.com/repos/Turistforeningen/sherpa/milestones{/number}","notifications_url":"https://api.github.com/repos/Turistforeningen/sherpa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Turistforeningen/sherpa/labels{/name}","releases_url":"https://api.github.com/repos/Turistforeningen/sherpa/releases{/id}","deployments_url":"https://api.github.com/repos/Turistforeningen/sherpa/deployments","created_at":"2011-10-18T11:56:33Z","updated_at":"2016-03-18T10:34:41Z","pushed_at":"2016-05-13T12:30:22Z","git_url":"git://github.com/Turistforeningen/sherpa.git","ssh_url":"git@github.com:Turistforeningen/sherpa.git","clone_url":"https://github.com/Turistforeningen/sherpa.git","svn_url":"https://github.com/Turistforeningen/sherpa","homepage":"https://www.dnt.no","size":65901,"stargazers_count":5,"watchers_count":5,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/134"},"html":{"href":"https://github.com/Turistforeningen/sherpa/pull/134"},"issue":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/issues/134"},"comments":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/Turistforeningen/sherpa/statuses/97b4abc3e454e495d7bc21a214685f15fabfcda0"}}}}