Closed zerolab closed 8 months ago
Maybe this solution could help?
for target_locale in self.target_locales:
# Skip if target_locale is the same as source locale
if target_locale == source.locale:
continue
Yep, that's pretty much the idea
Fixed by #756
From an internal report where a site somehow ended up with multiple
Translation
objects wheretarget_locale
was the same assoruce.locale
which the resulted in some odd behaviours.Update https://github.com/wagtail/wagtail-localize/blob/main/wagtail_localize/operations.py#L63-L71 to skip any processing when
target_locale == source.locale