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
wagtail-localize breaks dump/load data #732
Comments
Hey @FlorianLudwig thank you for the report. I just tried this without localize and got the same problem. I had to tweak tl;dr - when you run {
"model": "wagtailcore.page",
"pk": 1,
"fields": {
"path": "0001",
"depth": 1,
"numchild": 1,
"translation_key": "9d32c666-2272-41e1-a685-037061176c76",
"locale": 1,
"latest_revision": null,
"live": true,
"has_unpublished_changes": false,
"first_published_at": null,
"last_published_at": null,
"live_revision": null,
"go_live_at": null,
"expire_at": null,
"expired": false,
"locked": false,
"locked_at": null,
"locked_by": null,
"title": "Root",
"draft_title": "Root",
"slug": "root",
"content_type": [
"wagtailcore",
"page"
],
"url_path": "/",
"owner": null,
"seo_title": "",
"show_in_menus": false,
"search_description": "",
"latest_revision_created_at": null,
"alias_of": null
}
}, hence the error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Summary
Having wagtail-localize breaks dump/load data
Steps to Reproduce
wagtail start mysite .
python manage.py createsuperuser
INSTALLED_APPS
python manage.py runserver
, login and publish subpage below root pagerm db.sqlite3
python manage.py migrate
python manage.py loaddata data.json
Error:
django.db.utils.IntegrityError: Problem installing fixture 'data.json': Could not load wagtailcore.Page(pk=1): constraint failed
Technical details
The text was updated successfully, but these errors were encountered: