Skip to content
Snippets Groups Projects
Verified Commit ce304143 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Move import of show_toolbar to prevent side effects on import

parent 7237ac9b
No related branches found
No related tags found
No related merge requests found
Pipeline #295 passed
......@@ -5,10 +5,9 @@ from typing import Sequence
from django.conf import settings
from django.http import HttpRequest
from debug_toolbar.middleware import show_toolbar
def dt_show_toolbar(request: HttpRequest) -> bool:
from debug_toolbar.middleware import show_toolbar # noqa
return settings.DEBUG and (show_toolbar(request) or request.user.is_superuser)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment