We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2491e4a + cc6f50c commit 2006859Copy full SHA for 2006859
django_readonly_field/apps.py
@@ -7,13 +7,14 @@ class Readonly(AppConfig):
7
name = 'django_readonly_field'
8
9
def ready(self):
10
- from django.db import connection
+ from django.db import connections
11
from django.db import utils
12
13
readonly_compiler_module = "django_readonly_field.compiler"
14
15
- # Change the current value (this is mostly important for the tests)
16
- connection.ops.compiler_module = readonly_compiler_module
+ # Change the current values (this is mostly important for the tests)
+ for c in connections:
17
+ connections[c].ops.compiler_module = readonly_compiler_module
18
19
original_load_backend = utils.load_backend
20
0 commit comments