{"action":"created","issue":{"url":"https://api.github.com/repos/uchicago-library/library_website/issues/36","repository_url":"https://api.github.com/repos/uchicago-library/library_website","labels_url":"https://api.github.com/repos/uchicago-library/library_website/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/uchicago-library/library_website/issues/36/comments","events_url":"https://api.github.com/repos/uchicago-library/library_website/issues/36/events","html_url":"https://github.com/uchicago-library/library_website/issues/36","id":251771944,"number":36,"title":"Add \"Collecting Area\" view to Subject Area browse","user":{"login":"kzadrozny","id":10147408,"avatar_url":"https://avatars2.githubusercontent.com/u/10147408?v=4","gravatar_id":"","url":"https://api.github.com/users/kzadrozny","html_url":"https://github.com/kzadrozny","followers_url":"https://api.github.com/users/kzadrozny/followers","following_url":"https://api.github.com/users/kzadrozny/following{/other_user}","gists_url":"https://api.github.com/users/kzadrozny/gists{/gist_id}","starred_url":"https://api.github.com/users/kzadrozny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzadrozny/subscriptions","organizations_url":"https://api.github.com/users/kzadrozny/orgs","repos_url":"https://api.github.com/users/kzadrozny/repos","events_url":"https://api.github.com/users/kzadrozny/events{/privacy}","received_events_url":"https://api.github.com/users/kzadrozny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kzadrozny","id":10147408,"avatar_url":"https://avatars2.githubusercontent.com/u/10147408?v=4","gravatar_id":"","url":"https://api.github.com/users/kzadrozny","html_url":"https://github.com/kzadrozny","followers_url":"https://api.github.com/users/kzadrozny/followers","following_url":"https://api.github.com/users/kzadrozny/following{/other_user}","gists_url":"https://api.github.com/users/kzadrozny/gists{/gist_id}","starred_url":"https://api.github.com/users/kzadrozny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzadrozny/subscriptions","organizations_url":"https://api.github.com/users/kzadrozny/orgs","repos_url":"https://api.github.com/users/kzadrozny/repos","events_url":"https://api.github.com/users/kzadrozny/events{/privacy}","received_events_url":"https://api.github.com/users/kzadrozny/received_events","type":"User","site_admin":false},"assignees":[{"login":"kzadrozny","id":10147408,"avatar_url":"https://avatars2.githubusercontent.com/u/10147408?v=4","gravatar_id":"","url":"https://api.github.com/users/kzadrozny","html_url":"https://github.com/kzadrozny","followers_url":"https://api.github.com/users/kzadrozny/followers","following_url":"https://api.github.com/users/kzadrozny/following{/other_user}","gists_url":"https://api.github.com/users/kzadrozny/gists{/gist_id}","starred_url":"https://api.github.com/users/kzadrozny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzadrozny/subscriptions","organizations_url":"https://api.github.com/users/kzadrozny/orgs","repos_url":"https://api.github.com/users/kzadrozny/repos","events_url":"https://api.github.com/users/kzadrozny/events{/privacy}","received_events_url":"https://api.github.com/users/kzadrozny/received_events","type":"User","site_admin":false},{"login":"johnjung","id":10198227,"avatar_url":"https://avatars1.githubusercontent.com/u/10198227?v=4","gravatar_id":"","url":"https://api.github.com/users/johnjung","html_url":"https://github.com/johnjung","followers_url":"https://api.github.com/users/johnjung/followers","following_url":"https://api.github.com/users/johnjung/following{/other_user}","gists_url":"https://api.github.com/users/johnjung/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjung/subscriptions","organizations_url":"https://api.github.com/users/johnjung/orgs","repos_url":"https://api.github.com/users/johnjung/repos","events_url":"https://api.github.com/users/johnjung/events{/privacy}","received_events_url":"https://api.github.com/users/johnjung/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-08-21T21:10:21Z","updated_at":"2017-08-23T14:33:40Z","closed_at":null,"body":"Add icon and link to subjects that have Collecting Area pages to the Subject browse view."},"comment":{"url":"https://api.github.com/repos/uchicago-library/library_website/issues/comments/324353916","html_url":"https://github.com/uchicago-library/library_website/issues/36#issuecomment-324353916","issue_url":"https://api.github.com/repos/uchicago-library/library_website/issues/36","id":324353916,"user":{"login":"kzadrozny","id":10147408,"avatar_url":"https://avatars2.githubusercontent.com/u/10147408?v=4","gravatar_id":"","url":"https://api.github.com/users/kzadrozny","html_url":"https://github.com/kzadrozny","followers_url":"https://api.github.com/users/kzadrozny/followers","following_url":"https://api.github.com/users/kzadrozny/following{/other_user}","gists_url":"https://api.github.com/users/kzadrozny/gists{/gist_id}","starred_url":"https://api.github.com/users/kzadrozny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzadrozny/subscriptions","organizations_url":"https://api.github.com/users/kzadrozny/orgs","repos_url":"https://api.github.com/users/kzadrozny/repos","events_url":"https://api.github.com/users/kzadrozny/events{/privacy}","received_events_url":"https://api.github.com/users/kzadrozny/received_events","type":"User","site_admin":false},"created_at":"2017-08-23T14:33:40Z","updated_at":"2017-08-23T14:33:40Z","body":"**I'm having some issues with my code that I need help with:**\r\n\r\n## On my local database\r\nThe only subject that has a Collecting Area page is \"Classics,\" but more than Classics is getting the \"View Collecting Area\" link auto-added to the browse.\r\n\r\n## In lib_collections/views\r\nI know these two lines are incorrect:\r\n```\r\ncollectingarea_qs = CollectingAreaPage.objects.all().prefetch_related('subject')\r\n\r\nsubjects_with_collecting_area = set(collectingarea_qs.values_list('subject', flat=True))\r\n```\r\n\r\n## In lib_collections/collections_index_page.html\r\nI am unsure how to call the URL for the related Collecting Area Page:\r\n```\r\n<a href=\"{{ collecting_area.url }}\"><i class=\"material-icons\" aria-hidden=\"true\">style</i>View Collecting Area Page<span class=\"visually-hidden\"> for {{ s.name }} </span></a>\r\n```"}}
{"actor":{"display_login":"kzadrozny"}}