misc: rename authentic2.utils import path to authentic2.utils.misc (#55624)
This commit is contained in:
parent
6db41c2223
commit
d89c5ec85d
|
@ -567,7 +567,7 @@ class AppConfig(django.apps.AppConfig):
|
|||
self.mail_notification(actor, subject, mail_message or message)
|
||||
|
||||
def mail_notification(self, actor, subject, message):
|
||||
from authentic2.utils import send_templated_mail
|
||||
from authentic2.utils.misc import send_templated_mail
|
||||
|
||||
if subject.ou and subject.ou.slug == 'usagers':
|
||||
send_templated_mail(subject, 'authentic2/cut-notify-usager-modification',
|
||||
|
|
|
@ -2,7 +2,7 @@ from django.conf import settings
|
|||
from django.utils.six.moves.urllib import parse as urlparse
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
|
||||
from authentic2.utils import same_domain, redirect
|
||||
from authentic2.utils.misc import same_domain, redirect
|
||||
|
||||
|
||||
class CUTMiddleware(MiddlewareMixin):
|
||||
|
|
|
@ -30,7 +30,7 @@ from authentic2.views import EditProfile
|
|||
from authentic2.manager.views import SimpleSubTableView, BaseTableView, FilterQuerysetByPermMixin
|
||||
from authentic2.manager.user_views import UserEditView, UserDetailView
|
||||
from authentic2 import hooks
|
||||
from authentic2.utils import redirect
|
||||
from authentic2.utils.misc import redirect
|
||||
|
||||
from .custom_settings import CORE_ATTRIBUTES
|
||||
from . import models, forms, tables, utils
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from django.urls import reverse
|
||||
|
||||
from authentic2.utils import make_url
|
||||
from authentic2.utils.misc import make_url
|
||||
|
||||
|
||||
def login(app, user, path=None, password=None, remember_me=None):
|
||||
|
|
Loading…
Reference in New Issue