Permalink
Browse files

lambda the callback

  • Loading branch information...
robhudson committed Jan 22, 2013
1 parent 2dd435c commit 8d2205648f5b87ef60846eb6d9b7b77f341ea543
Showing with 1 addition and 4 deletions.
  1. +1 −4 settings_test.py
View
@@ -90,12 +90,9 @@ def _polite_tmpdir():
# html tests.
-def custom_show_toolbar(request):
- return False
-
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': False,
- 'SHOW_TOOLBAR_CALLBACK': custom_show_toolbar,
+ 'SHOW_TOOLBAR_CALLBACK': lambda r: False,
'HIDE_DJANGO_SQL': True,
'TAG': 'div',
'ENABLE_STACKTRACES': False,

0 comments on commit 8d22056

Please sign in to comment.