misc: adapt import for new rbac module location (#71272)

This commit is contained in:
Valentin Deniaud 2022-11-14 14:45:05 +01:00
parent e1c8e88a4a
commit 347f4d2bc6
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ from django.db import router
from django.db.models.signals import post_save, post_migrate
from django.contrib.contenttypes.models import ContentType
from django_rbac.utils import get_operation
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 (