Skip to content

Commit c2f3e94

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 63b04b5 commit c2f3e94

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

debug_toolbar/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
try:
22
from django.contrib.auth.decorators import login_not_required
33
except ImportError:
4+
45
def login_not_required(func):
56
return func

debug_toolbar/decorators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from debug_toolbar import settings as dt_settings
77

8+
89
def require_show_toolbar(view):
910
@functools.wraps(view)
1011
def inner(request, *args, **kwargs):

debug_toolbar/panels/history/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from debug_toolbar.panels.history.forms import HistoryStoreForm
77
from 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

0 commit comments

Comments
 (0)