Skip to content
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

Prevent error on page editing after changing LANGUAGE_CODE #6872

Merged

Conversation

gasman
Copy link
Collaborator

@gasman gasman commented Mar 4, 2021

Fixes #6860 as per #6860 (comment).

@gasman gasman added this to the 2.11.6 milestone Mar 4, 2021
@gasman gasman requested a review from kaedroho March 4, 2021 15:44
@squash-labs
Copy link

squash-labs bot commented Mar 4, 2021

Manage this branch in Squash

Test this branch here: https://gasmanfixpage-edit-after-chang-52iup.squash.io

Copy link
Contributor

@kaedroho kaedroho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks for fixing it!

The reason I added this was to remove invalid locales from all the menus. But it's probably better to display the broken locales in the menus as this would make it easier to tell what's going on and the logic is simpler!

@gasman gasman merged commit b20eb06 into wagtail:main Mar 5, 2021
gasman added a commit that referenced this pull request Mar 5, 2021
gasman added a commit that referenced this pull request Mar 5, 2021
gasman added a commit that referenced this pull request Mar 5, 2021
gasman added a commit that referenced this pull request Mar 5, 2021
gasman added a commit that referenced this pull request Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit page will get error after changing LANGUAGE_CODE in settings
2 participants