wagtail-localize throws wagtail_localize.models.TranslationSource.MultipleObjectsReturned: get() returned more than one TranslationSource -- it returned 2!
So I started the translation FROM the French alias page, in all locales.
Once I realized my mistake, I used the "Convert to alias page" button from the translated pages except for the French one because the option wasn’t available.
So I had to delete the French (to French) translation, then correctly start the French translation from the English page.
It looks like deleting the French page left some kind of reference in the DB, and now we have two "translation source", I suppose a "French to French", and a "English to French".
What’s actionable in this ticket:
[ ] Finding a way to remove the extra translation source for these 3 pages, restoring our ability to edit them.
[ ] Determining what needs to be reported upstream in wagtail-localize.
For starter, I probably shouldn’t be able to start a French to French translation.
Note that we’re using an old version, and this might have been addressed already
We currently can’t edit the following pages:
Community, mobilisation & governance (live) Platform and Dataset (live) Blog (live)
wagtail-localize throws
wagtail_localize.models.TranslationSource.MultipleObjectsReturned: get() returned more than one TranslationSource -- it returned 2!
Here’s what happened and what I’ve done
I was starting translation of these pages, but I didn’t realize I wasn’t looking at the English version of the tree: https://foundation.mozilla.org/cms/pages/19077/
So I started the translation FROM the French alias page, in all locales. Once I realized my mistake, I used the "Convert to alias page" button from the translated pages except for the French one because the option wasn’t available. So I had to delete the French (to French) translation, then correctly start the French translation from the English page.
It looks like deleting the French page left some kind of reference in the DB, and now we have two "translation source", I suppose a "French to French", and a "English to French".
What’s actionable in this ticket: