misc: remove compatibility code with old authentic version (#72026)

This commit is contained in:
Valentin Deniaud 2022-12-05 12:13:39 +01:00
parent 39ccb8ce1a
commit eeeb203681
1 changed files with 4 additions and 18 deletions

View File

@ -23,24 +23,6 @@ from django.db import router
from django.db.models.signals import post_save, post_migrate
from django.contrib.contenttypes.models import ContentType
try:
from authentic2.a2_rbac.utils import get_operation
except ImportError: # legacy
from django_rbac.utils import get_operation
try:
from authentic2.a2_rbac.models import (
ADMIN_OP,
CHANGE_OP,
ADD_OP,
)
except ImportError: # legacy
from django_rbac.models import (
ADMIN_OP,
CHANGE_OP,
ADD_OP,
)
from authentic2.custom_user.models import User
from authentic2.a2_rbac.models import (
OrganizationalUnit as OU,
@ -49,7 +31,11 @@ from authentic2.a2_rbac.models import (
RESET_PASSWORD_OP,
ACTIVATE_OP,
CHANGE_EMAIL_OP,
ADMIN_OP,
CHANGE_OP,
ADD_OP
)
from authentic2.a2_rbac.utils import get_operation
from authentic2.models import Service