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 1
1
from time import time
2
2
3
+ import django
3
4
import sqlparse
4
5
from django .core .management .commands .shell import Command # noqa
5
6
from django .db import connection
6
7
7
- if connection .vendor == "postgresql" :
8
+ if connection .vendor == "postgresql" and django . VERSION >= ( 3 , 0 , 0 ) :
8
9
from django .db .backends .postgresql import base as base_module
9
10
else :
10
11
from django .db .backends import utils as base_module
Original file line number Diff line number Diff line change 1
1
import io
2
2
import sys
3
3
4
+ import django
4
5
from django .contrib .auth .models import User
5
6
from django .core import management
6
7
from django .db import connection
7
8
from django .test import TestCase
8
9
from django .test .utils import override_settings
9
10
10
- if connection .vendor == "postgresql" :
11
+ if connection .vendor == "postgresql" and django . VERSION >= ( 3 , 0 , 0 ) :
11
12
from django .db .backends .postgresql import base as base_module
12
13
else :
13
14
from django .db .backends import utils as base_module
You can’t perform that action at this time.
0 commit comments