mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
Merge branch 'quick_fix_about' into 'dev'
fix: 🐛 Quick fix bug with MIDDLEWARE_CLASSES See merge request re2o/re2o!610
This commit is contained in:
commit
d1435720f4
2 changed files with 3 additions and 3 deletions
|
@ -111,9 +111,9 @@ AUTHENTICATION_BACKENDS = ["re2o.login.RecryptBackend"]
|
|||
# Include debug_toolbar middleware if activated
|
||||
if "debug_toolbar" in INSTALLED_APPS:
|
||||
# Include this middleware at the beggining
|
||||
MIDDLEWARE_CLASSES = (
|
||||
MIDDLEWARE = (
|
||||
"debug_toolbar.middleware.DebugToolbarMiddleware",
|
||||
) + MIDDLEWARE_CLASSES
|
||||
) + MIDDLEWARE
|
||||
# Change the default show_toolbar middleware
|
||||
DEBUG_TOOLBAR_CONFIG = {
|
||||
"SHOW_TOOLBAR_CALLBACK": "re2o.middleware.show_debug_toolbar"
|
||||
|
|
|
@ -109,7 +109,7 @@ def about_page(request):
|
|||
git_info_commit = NO_GIT_MSG
|
||||
git_info_commit_date = NO_GIT_MSG
|
||||
|
||||
dependencies = settings.INSTALLED_APPS + settings.MIDDLEWARE_CLASSES
|
||||
dependencies = settings.INSTALLED_APPS + settings.MIDDLEWARE
|
||||
|
||||
try:
|
||||
president = Mandate.get_mandate().president.get_full_name()
|
||||
|
|
Loading…
Reference in a new issue