Skip to content

fix: set explicit languages to suppress admin language chooser warning#2903

Merged
JacobCoffee merged 1 commit intomainfrom
fix/admin-language-chooser-warning
Feb 19, 2026
Merged

fix: set explicit languages to suppress admin language chooser warning#2903
JacobCoffee merged 1 commit intomainfrom
fix/admin-language-chooser-warning

Conversation

@JacobCoffee
Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings February 19, 2026 01:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR resolves warnings during test runs by explicitly setting the LANGUAGES configuration in Django settings. The warning was raised by the admin_interface package's language chooser feature, which checks for either LocaleMiddleware or a configured LANGUAGES setting. By explicitly declaring English as the only supported language, the language chooser is disabled, eliminating the warning without adding unnecessary middleware.

Changes:

  • Added explicit LANGUAGES setting with English as the only language, matching the existing LANGUAGE_CODE configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pydotorg/settings/base.py
@JacobCoffee JacobCoffee merged commit b806afa into main Feb 19, 2026
21 checks passed
@JacobCoffee JacobCoffee deleted the fix/admin-language-chooser-warning branch February 19, 2026 02:04
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.

Tests: Language chooser middleware warning during tests

2 participants