manager: load django-select2 configuration early (#22864)
It prevents initialization of django-selevt2 inside tests. In some tests settings are kept in a UserSettingsHolder which is cleaned at the end of tests, resetting all keys set by django_select2.conf.
This commit is contained in:
parent
ef736f42bd
commit
7bb909a225
|
@ -8,6 +8,7 @@ class AppConfig(AppConfig):
|
|||
def ready(self):
|
||||
from django.db.models.signals import post_save
|
||||
from django_rbac.utils import get_ou_model
|
||||
from django_select2 import conf
|
||||
|
||||
post_save.connect(
|
||||
self.post_save_ou,
|
||||
|
|
Loading…
Reference in New Issue