File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 22
33import django
44import sqlparse
5- from django .core .management .commands .shell import Command # noqa: F401
5+ from django .core .management .commands .shell import Command
66from django .db import connection
77
88if connection .vendor == "postgresql" and django .VERSION >= (3 , 0 , 0 ):
1313# 'debugsqlshell' is the same as the 'shell'.
1414
1515
16+ # Command is required to exist to be loaded via
17+ # django.core.managementload_command_class
18+ __all__ = ["Command" , "PrintQueryWrapper" ]
19+
20+
1621class PrintQueryWrapper (base_module .CursorDebugWrapper ):
1722 def execute (self , sql , params = ()):
1823 start_time = time ()
Original file line number Diff line number Diff line change 1- from debug_toolbar .panels .history .panel import HistoryPanel # noqa: F401
1+ from debug_toolbar .panels .history .panel import HistoryPanel
2+
3+ __all__ = ["HistoryPanel" ]
Original file line number Diff line number Diff line change 1- from debug_toolbar .panels .sql .panel import SQLPanel # noqa: F401
1+ from debug_toolbar .panels .sql .panel import SQLPanel
2+
3+ __all__ = ["SQLPanel" ]
Original file line number Diff line number Diff line change 1- from debug_toolbar .panels .templates .panel import TemplatesPanel # noqa: F401
1+ from debug_toolbar .panels .templates .panel import TemplatesPanel
2+
3+ __all__ = ["TemplatesPanel" ]
You can’t perform that action at this time.
0 commit comments