Skip to content

Fix spurious language field migrations and add USER_LANGUAGES - #1247

Merged
noeddl merged 4 commits into
mainfrom
noeddl/user-languages
Apr 23, 2026
Merged

noeddl merged 4 commits into
mainfrom
noeddl/user-languages

Conversation

@noeddl

@noeddl noeddl commented Apr 15, 2026

Copy link
Copy Markdown
Contributor
  • Replace inline use of settings.LANGUAGE_CODE and settings.LANGUAGES with callables so changes to these settings no longer trigger new migrations (see also 🐛 Fix spurious language field migrations across projects django-filingcabinet#101).
  • Add new settings variable USER_LANGUAGES to allow for defining a separate set of languages to be used in user dialogues, e.g. to exclude de-ls from user language choice in the account settings.

@noeddl
noeddl requested a review from stefanw April 15, 2026 12:35
@noeddl

noeddl commented Apr 15, 2026

Copy link
Copy Markdown
Contributor Author

Tests fail because okfde/django-filingcabinet#101 has to be merged first.

@noeddl
noeddl force-pushed the noeddl/user-languages branch 2 times, most recently from 8e08e65 to b0a3c28 Compare April 20, 2026 13:10

@n0ctua n0ctua left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me. I just added some questions and possible pitfalls in the comments you might want to check out.

Comment thread froide/account/forms.py Resolved
Comment thread froide/foirequest/forms/request.py Resolved
Comment thread froide/helper/language.py Resolved
Comment thread froide/helper/context_processors.py Resolved
@noeddl
noeddl force-pushed the noeddl/user-languages branch from b0a3c28 to e69d2e4 Compare April 23, 2026 10:18
@noeddl
noeddl merged commit faa949d into main Apr 23, 2026
4 checks passed
@noeddl
noeddl deleted the noeddl/user-languages branch April 23, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants