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
IntegrityError: could not create unique index when adding translation mixins to created objects #737
Comments
@marcosguedes please see https://docs.wagtail.org/en/stable/advanced_topics/i18n.html#making-snippets-with-existing-data-translatable for instructions on how to make models with content translatable If you have suggestions on how to improve the documentation, please do share and even better, submit a PR |
@zerolab many thanks. I believe the issue here was due to being fully guided by wagtail-localize.org. I can submit a PR with a warning in this section pointing to the docs if you believe that's the right approach |
@marcosguedes a warning would most certainly be useful there, thank you |
Hi, I'm running Wagtail 5.0 and wagtail-localize 1.6 and I'm getting an issue when adding translation to current models
I followed the tutorial up to the part where we translate content. I create a new migration where Wagtail suggests me to create a unique_together constraint. I do so but it still remains.
It then asks me for a default. I use the first locale ID
Then it breaks when I'm migrating
Is there something I can do to fix this? Or adding translations requires me to delete everything and start over?
Apologies if this is a newbie question unrelated to the package or it's addressed somewhere in the documentation but it's my first time with Wagtail and my eyes are burning.
Cheers
The text was updated successfully, but these errors were encountered: