misc: remove compatibility code with old authentic version (#72026)
This commit is contained in:
parent
39ccb8ce1a
commit
eeeb203681
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue