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:
Benjamin Dauvergne 2018-03-28 21:21:08 +02:00
parent ef736f42bd
commit 7bb909a225
1 changed files with 1 additions and 0 deletions

View File

@ -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,