--- a/src/ldt/ldt/security/__init__.py Mon Jul 20 19:12:18 2015 +0200
+++ b/src/ldt/ldt/security/__init__.py Wed Jul 22 15:01:51 2015 +0200
@@ -1,8 +1,9 @@
+from ldt.security.permissionchecker import check_object_perm_for_user
+
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from django.core.signals import request_started
-from ldt.security.permissionchecker import check_object_perm_for_user
try:
@@ -10,6 +11,8 @@
except ImportError:
from django.utils._threading_local import local
+default_app_config = 'ldt.security.apps.LdtSecurityConfig'
+
_thread_locals = local()
# The function that protect models is called on the first
@@ -109,5 +112,3 @@
if not _models_are_protected:
protect_models()
-request_started.connect(protect_models_request)
-