You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
@norbertschuler to avoid this warning when using a middleware subclass would require to import and check all middlewares everytime the template tag is called, now I'm wondering: wouldn't adding this check add too much overhead to avoid a simple warning which only purpose is to help users in case of setup mistakes?
In the meantime, have you tried to ignore the warning?
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 yoursettings.MIDDLEWARE
but have an own custom middleware inheriting fromdjango.middleware.locale.LocaleMiddleware
the code atdjango-admin-interface/admin_interface/templatetags/admin_interface_tags.py
Line 28 in e895a05
Expected behavior
Omit the warning or think about another way to not throw an unnecessary warning?
Upvote & Fund
The text was updated successfully, but these errors were encountered: