Skip to content

Commit 80b286b

Browse files
authored
Merge pull request #940 from timb07/master
Fix circular import issue; #938
2 parents f9c1a5d + 7e03af9 commit 80b286b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debug_toolbar/decorators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
from django.http import Http404
44

5-
from debug_toolbar.middleware import get_show_toolbar
6-
75

86
def require_show_toolbar(view):
97
@functools.wraps(view)
108
def inner(request, *args, **kwargs):
9+
from debug_toolbar.middleware import get_show_toolbar
10+
1111
show_toolbar = get_show_toolbar()
1212
if not show_toolbar(request):
1313
raise Http404

0 commit comments

Comments
 (0)