Skip to content

Unnecessary warning for missing django.middleware.locale.LocaleMiddleware if using customized middleware #354

Closed as not planned
@norbertschuler

Description

@norbertschuler

Python version
3.11.7

Django version
4.2.8

Package version
0.28.3

Current behavior (bug description)
If you do not use django.middleware.locale.LocaleMiddleware in your settings.MIDDLEWARE but have an own custom middleware inheriting from django.middleware.locale.LocaleMiddleware the code at

if "django.middleware.locale.LocaleMiddleware" not in settings.MIDDLEWARE:
throws an unnecessary warning.

Expected behavior
Omit the warning or think about another way to not throw an unnecessary warning?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions