File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
debug_toolbar/management/commands Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11from time import time
22
3+ import django
34import sqlparse
45from django .core .management .commands .shell import Command # noqa
56from django .db import connection
67
7- if connection .vendor == "postgresql" :
8+ if connection .vendor == "postgresql" and django . VERSION >= ( 3 , 0 , 0 ) :
89 from django .db .backends .postgresql import base as base_module
910else :
1011 from django .db .backends import utils as base_module
Original file line number Diff line number Diff line change 11import io
22import sys
33
4+ import django
45from django .contrib .auth .models import User
56from django .core import management
67from django .db import connection
78from django .test import TestCase
89from django .test .utils import override_settings
910
10- if connection .vendor == "postgresql" :
11+ if connection .vendor == "postgresql" and django . VERSION >= ( 3 , 0 , 0 ) :
1112 from django .db .backends .postgresql import base as base_module
1213else :
1314 from django .db .backends import utils as base_module
You can’t perform that action at this time.
0 commit comments