There was an error while loading. Please reload this page.
1 parent a493d12 commit 583a247Copy full SHA for 583a247
db_adapter/models.py
@@ -1,4 +1,5 @@
1
from django.db.models import Model
2
+from django.db.models.signals import class_prepared, pre_init
3
4
from .utils import normalize_table
5
@@ -19,3 +20,7 @@ def apply_db_table_normalization(sender: Model, **kwargs):
19
20
)
21
22
sender._meta.db_table = normalized_name
23
+
24
25
+pre_init.connect(apply_db_table_normalization)
26
+class_prepared.connect(apply_db_table_normalization)
0 commit comments