authentic2: import signals from a2_rbac rather than django_rbac (#70180)

This commit is contained in:
Valentin Deniaud 2022-10-12 16:18:24 +02:00
parent fc4ba9bbf6
commit 4fbb177534
1 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,12 @@
from django.apps import AppConfig
from django.conf import settings
from django.db.models.signals import m2m_changed, post_save, pre_delete, pre_save
from django_rbac.signals import post_soft_create, post_soft_delete
try:
from authentic2.a2_rbac.signals import post_soft_create, post_soft_delete
except ImportError:
# legacy
from django_rbac.signals import post_soft_create, post_soft_delete
class Plugin: