Skip to content

Prevent TranslationCreator create Translation objects with the same locale as the source locale` #749

Closed

Description

From an internal report where a site somehow ended up with multiple Translation objects where target_locale was the same as soruce.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions