{"action":"created","issue":{"url":"https://api.github.com/repos/wagtail/wagtail/issues/3567","repository_url":"https://api.github.com/repos/wagtail/wagtail","labels_url":"https://api.github.com/repos/wagtail/wagtail/issues/3567/labels{/name}","comments_url":"https://api.github.com/repos/wagtail/wagtail/issues/3567/comments","events_url":"https://api.github.com/repos/wagtail/wagtail/issues/3567/events","html_url":"https://github.com/wagtail/wagtail/issues/3567","id":223892153,"number":3567,"title":"Deleted page models are not handled gracefully by explorer view","user":{"login":"gasman","id":85097,"avatar_url":"https://avatars1.githubusercontent.com/u/85097?v=3","gravatar_id":"","url":"https://api.github.com/users/gasman","html_url":"https://github.com/gasman","followers_url":"https://api.github.com/users/gasman/followers","following_url":"https://api.github.com/users/gasman/following{/other_user}","gists_url":"https://api.github.com/users/gasman/gists{/gist_id}","starred_url":"https://api.github.com/users/gasman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasman/subscriptions","organizations_url":"https://api.github.com/users/gasman/orgs","repos_url":"https://api.github.com/users/gasman/repos","events_url":"https://api.github.com/users/gasman/events{/privacy}","received_events_url":"https://api.github.com/users/gasman/received_events","type":"User","site_admin":false},"labels":[{"id":78418438,"url":"https://api.github.com/repos/wagtail/wagtail/labels/type:Bug","name":"type:Bug","color":"ff0000","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/wagtail/wagtail/milestones/28","html_url":"https://github.com/wagtail/wagtail/milestone/28","labels_url":"https://api.github.com/repos/wagtail/wagtail/milestones/28/labels","id":1758998,"number":28,"title":"real-soon-now","description":"","creator":{"login":"gasman","id":85097,"avatar_url":"https://avatars1.githubusercontent.com/u/85097?v=3","gravatar_id":"","url":"https://api.github.com/users/gasman","html_url":"https://github.com/gasman","followers_url":"https://api.github.com/users/gasman/followers","following_url":"https://api.github.com/users/gasman/following{/other_user}","gists_url":"https://api.github.com/users/gasman/gists{/gist_id}","starred_url":"https://api.github.com/users/gasman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasman/subscriptions","organizations_url":"https://api.github.com/users/gasman/orgs","repos_url":"https://api.github.com/users/gasman/repos","events_url":"https://api.github.com/users/gasman/events{/privacy}","received_events_url":"https://api.github.com/users/gasman/received_events","type":"User","site_admin":false},"open_issues":84,"closed_issues":41,"state":"open","created_at":"2016-05-10T21:48:14Z","updated_at":"2017-06-27T15:26:09Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-04-24T17:19:29Z","updated_at":"2017-06-27T15:26:09Z","closed_at":"2017-06-27T15:26:09Z","body":"### Issue Summary\r\n\r\nSee http://stackoverflow.com/a/43589376/1853523 . If an explorer page listing includes a page whose class definition does not exist in the project, template rendering fails with `AttributeError: 'NoneType' object has no attribute 'objects'`. Previously, missing page models were handled gracefully by the `Page.specific` method, which falls back on the basic Page instance where the specific model can't be found - however, it seems that the queryset `specific` method doesn't do this.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Start a new project with `wagtail start`, and configure it for Postgres\r\n2. `./manage.py migrate` / `./manage.py createsuperuser`\r\n3. Remove the HomePage class definition from `home/models.py`\r\n4. Run `./manage.py makemigrations` / `./manage.py migrate`\r\n5. Log in to the admin and go to http://localhost:8000/admin/pages/ - this throws the error `AttributeError: 'NoneType' object has no attribute 'objects'`\r\n\r\n### Technical details\r\n\r\n* Python version: 2.7.6.\r\n* Django version: 1.10.7\r\n* Wagtail version: 1.9.1\r\n* Browser version: Chrome 57\r\n"},"comment":{"url":"https://api.github.com/repos/wagtail/wagtail/issues/comments/311394040","html_url":"https://github.com/wagtail/wagtail/issues/3567#issuecomment-311394040","issue_url":"https://api.github.com/repos/wagtail/wagtail/issues/3567","id":311394040,"user":{"login":"gasman","id":85097,"avatar_url":"https://avatars1.githubusercontent.com/u/85097?v=3","gravatar_id":"","url":"https://api.github.com/users/gasman","html_url":"https://github.com/gasman","followers_url":"https://api.github.com/users/gasman/followers","following_url":"https://api.github.com/users/gasman/following{/other_user}","gists_url":"https://api.github.com/users/gasman/gists{/gist_id}","starred_url":"https://api.github.com/users/gasman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasman/subscriptions","organizations_url":"https://api.github.com/users/gasman/orgs","repos_url":"https://api.github.com/users/gasman/repos","events_url":"https://api.github.com/users/gasman/events{/privacy}","received_events_url":"https://api.github.com/users/gasman/received_events","type":"User","site_admin":false},"created_at":"2017-06-27T15:26:08Z","updated_at":"2017-06-27T15:26:08Z","body":"Duplicate of #1951"}}
{"actor":{"display_login":"gasman"}}