I had a custom page model called "OurStoryPage". I deleted this page model and ran migrations, but it's still showing in the admin.
I can navigate to the page edit screen in the Admin...but I can't delete it or update it. Instead, I get the following error:
| Request URL: | http://127.0.0.1:8080/admin/pages/24/delete/ |
|---|
| Django Version: | 1.7.7 |
|---|
| Exception Type: | DoesNotExist |
|---|
| Exception Value: | OurStoryPage matching query does not exist. |
|---|
| Exception Location: | /vagrant/.venv/lib/python3.4/site-packages/django/db/models/query.py in get, line 357
|
|---|
I thought this was odd, so I headed to the shell to try to delete in manually. In the shell, I tried to delete the page by using `Page.objects.filter(id=24)[0].delete()`.
The page is successfully queried and found, but running `delete()` returns `pages.models.DoesNotExist: OurStoryPage matching query does not exist.`
Any ideas what's going on? I'm assuming it's some kind of relationship that still exists in the database...but I'm wondering if I'm just missing something simple.