File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ class Readonly(AppConfig):
7
7
name = 'django_readonly_field'
8
8
9
9
def ready (self ):
10
- from django .db import connection
10
+ from django .db import connections
11
11
from django .db import utils
12
12
13
13
readonly_compiler_module = "django_readonly_field.compiler"
14
14
15
- # Change the current value (this is mostly important for the tests)
16
- connection .ops .compiler_module = readonly_compiler_module
15
+ # Change the current values (this is mostly important for the tests)
16
+ for c in connections :
17
+ connections [c ].ops .compiler_module = readonly_compiler_module
17
18
18
19
original_load_backend = utils .load_backend
19
-
20
20
def custom_load_backend (* args , ** kwargs ):
21
21
backend = original_load_backend (* args , ** kwargs )
22
22
You can’t perform that action at this time.
0 commit comments