{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2314","labels_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2314/labels{/name}","comments_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2314/comments","events_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2314/events","html_url":"https://github.com/OpenTreeMap/otm-core/issues/2314","id":112866441,"number":2314,"title":"500 error on main map page","user":{"login":"maurizi","id":4432106,"avatar_url":"https://avatars.githubusercontent.com/u/4432106?v=3","gravatar_id":"","url":"https://api.github.com/users/maurizi","html_url":"https://github.com/maurizi","followers_url":"https://api.github.com/users/maurizi/followers","following_url":"https://api.github.com/users/maurizi/following{/other_user}","gists_url":"https://api.github.com/users/maurizi/gists{/gist_id}","starred_url":"https://api.github.com/users/maurizi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurizi/subscriptions","organizations_url":"https://api.github.com/users/maurizi/orgs","repos_url":"https://api.github.com/users/maurizi/repos","events_url":"https://api.github.com/users/maurizi/events{/privacy}","received_events_url":"https://api.github.com/users/maurizi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/labels/unverified","name":"unverified","color":"fad8c7"}],"state":"closed","locked":false,"assignee":{"login":"steventlamb","id":1699455,"avatar_url":"https://avatars.githubusercontent.com/u/1699455?v=3","gravatar_id":"","url":"https://api.github.com/users/steventlamb","html_url":"https://github.com/steventlamb","followers_url":"https://api.github.com/users/steventlamb/followers","following_url":"https://api.github.com/users/steventlamb/following{/other_user}","gists_url":"https://api.github.com/users/steventlamb/gists{/gist_id}","starred_url":"https://api.github.com/users/steventlamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steventlamb/subscriptions","organizations_url":"https://api.github.com/users/steventlamb/orgs","repos_url":"https://api.github.com/users/steventlamb/repos","events_url":"https://api.github.com/users/steventlamb/events{/privacy}","received_events_url":"https://api.github.com/users/steventlamb/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/milestones/60","html_url":"https://github.com/OpenTreeMap/otm-core/milestones/2015-11-05","labels_url":"https://api.github.com/repos/OpenTreeMap/otm-core/milestones/60/labels","id":1372790,"number":60,"title":"2015-11-05","description":"","creator":{"login":"jwalgran","id":17363,"avatar_url":"https://avatars.githubusercontent.com/u/17363?v=3","gravatar_id":"","url":"https://api.github.com/users/jwalgran","html_url":"https://github.com/jwalgran","followers_url":"https://api.github.com/users/jwalgran/followers","following_url":"https://api.github.com/users/jwalgran/following{/other_user}","gists_url":"https://api.github.com/users/jwalgran/gists{/gist_id}","starred_url":"https://api.github.com/users/jwalgran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwalgran/subscriptions","organizations_url":"https://api.github.com/users/jwalgran/orgs","repos_url":"https://api.github.com/users/jwalgran/repos","events_url":"https://api.github.com/users/jwalgran/events{/privacy}","received_events_url":"https://api.github.com/users/jwalgran/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2015-10-23T16:43:01Z","updated_at":"2015-11-05T18:56:02Z","due_on":"2015-11-05T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-10-22T18:47:45Z","updated_at":"2015-11-05T18:56:02Z","closed_at":"2015-11-05T18:56:02Z","body":"I tried to access `rick10` immediately after the page was made public as an anonymous user and got a 500 error:\r\n```\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 135, in render\r\n    return compiled_parent._render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 201, in _render\r\n    return self.nodelist.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 135, in render\r\n    return compiled_parent._render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 201, in _render\r\n    return self.nodelist.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 65, in render\r\n    result = block.nodelist.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 576, in render\r\n    return self.nodelist.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 159, in render\r\n    return template.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 211, in render\r\n    return self._render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 201, in _render\r\n    return self.nodelist.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 574, in render\r\n    six.iteritems(self.extra_context)}\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 573, in <dictcomp>\r\n    values = {key: val.resolve(context) for key, val in\r\n  File \"/usr/local/otm/env/local/lib/python2.7/site-packages/django/template/base.py\", line 674, in resolve\r\n    new_obj = func(obj, *arg_vals)\r\n  File \"/usr/local/otm/app/opentreemap/treemap/templatetags/instance_config.py\", line 52, in get_udfc_search_fields\r\n    return instance.get_udfc_search_fields(user)\r\n  File \"/usr/local/otm/app/opentreemap/treemap/instance.py\", line 357, in get_udfc_search_fields\r\n    if udf_write_level(iu, udfd) in (READ, WRITE):\r\n  File \"/usr/local/otm/app/opentreemap/treemap/lib/perms.py\", line 170, in udf_write_level\r\n    if _allows_perm(perm_attr=ALLOWS_WRITES, **kwargs):\r\n  File \"/usr/local/otm/app/opentreemap/treemap/lib/perms.py\", line 71, in _allows_perm\r\n    perms = {perm for perm in role.model_permissions(model_name)}\r\n  File \"/usr/local/otm/app/opentreemap/treemap/audit.py\", line 697, in model_permissions\r\n    return role_permissions(self, self.instance, model_name)\r\n  File \"/usr/local/otm/app/opentreemap/treemap/lib/object_caches.py\", line 38, in role_permissions\r\n    return _get_adjuncts(instance).role_permissions(role.id, model_name)\r\n  File \"/usr/local/otm/app/opentreemap/treemap/lib/object_caches.py\", line 106, in _get_adjuncts\r\n    adjuncts = _adjuncts.get(instance.id)\r\nAttributeError: 'NoneType' object has no attribute 'id'\r\n```"}}