Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't delete a page because of an IntegrityError #24

Open
jkevingutierrez opened this issue Sep 23, 2020 · 0 comments
Open

Can't delete a page because of an IntegrityError #24

jkevingutierrez opened this issue Sep 23, 2020 · 0 comments

Comments

@jkevingutierrez
Copy link
Contributor

jkevingutierrez commented Sep 23, 2020

Can't delete a page that is referenced in the table livepreview_livepreviewrevision

django.db.utils.IntegrityError: update or delete on table "wagtailcore_page" violates foreign key constraint "livepreview_liveprev_page_id_a0bcd10f_fk_wagtailco" on table "livepreview_livepreviewrevision"

File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) 
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) 
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) 
File "/usr/local/lib/python3.8/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func response = view_func(request, *args, **kwargs) 
File "/usr/local/lib/python3.8/site-packages/wagtail/admin/urls/__init__.py", line 110, in wrapper return view_func(request, *args, **kwargs) 
File "/usr/local/lib/python3.8/site-packages/wagtail/admin/auth.py", line 188, in decorated_view return view_func(request, *args, **kwargs) 
File "/usr/local/lib/python3.8/site-packages/wagtail/admin/views/pages.py", line 792, in delete return redirect(next_url) 
File "/usr/local/lib/python3.8/site-packages/django/db/transaction.py", line 232, in __exit__ connection.commit() 
File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, **kwargs) 
File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 267, in commit self._commit()
File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 243, in _commit return self.connection.commit() 
File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value 
File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 243, in _commit return self.connection.commit() django.db.utils.IntegrityError: update or delete on table "wagtailcore_page" violates foreign key constraint "livepreview_liveprev_page_id_a0bcd10f_fk_wagtailco" on table "livepreview_livepreviewrevision"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant