File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 11try :
22 from django .contrib .auth .decorators import login_not_required
33except ImportError :
4+
45 def login_not_required (func ):
56 return func
Original file line number Diff line number Diff line change 55
66from debug_toolbar import settings as dt_settings
77
8+
89def require_show_toolbar (view ):
910 @functools .wraps (view )
1011 def inner (request , * args , ** kwargs ):
Original file line number Diff line number Diff line change 66from debug_toolbar .panels .history .forms import HistoryStoreForm
77from debug_toolbar .toolbar import DebugToolbar
88
9+
910@login_not_required
1011@require_show_toolbar
1112@render_with_toolbar_language
@@ -37,6 +38,7 @@ def history_sidebar(request):
3738 return JsonResponse (context )
3839 return HttpResponseBadRequest ("Form errors" )
3940
41+
4042@login_not_required
4143@require_show_toolbar
4244@render_with_toolbar_language
You can’t perform that action at this time.
0 commit comments