Closed
Description
in my setup i always have seperate dev settings and in those settings i enable debug toolbar for all requests. i've always done that with the following config
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TOOLBAR_CALLBACK': lambda request: True,
}
after updating my virtualenv this morning i started getting errors that i've tracked down to trying to run rsplit on func_path
line 45 of debu_toolbar/middleware.py:
mod_path, func_name = func_path.rsplit('.', 1)
it looks like the meaning of SHOW_TOOLBAR_CALLBACK may have changed to require a string and not support a callable. if that's the case i'm not sure what the solution would be. i'd rather not have to define a function somewhere and point this at it just to return true. i'd prefer if SHOW_TOOLBAR_CALLBACK supported being presented a callable.