perf: Edit rbac perms (#13468)

Co-authored-by: feng <1304903146@qq.com>
Co-authored-by: feng626 <57284900+feng626@users.noreply.github.com>
This commit is contained in:
fit2bot
2024-06-21 19:08:37 +08:00
committed by GitHub
parent 407a77f61b
commit ae7dbbedcc
11 changed files with 124 additions and 123 deletions

View File

@@ -8,8 +8,8 @@ from django.core.mail import send_mail
from django.utils.translation import gettext_lazy as _
from rest_framework.views import Response, APIView
from common.utils import get_logger
from common.tasks import get_email_connection as get_connection
from common.utils import get_logger
from .. import serializers
logger = get_logger(__file__)
@@ -44,7 +44,7 @@ class MailTestingAPI(APIView):
# setattr(settings, k, v)
try:
subject = settings.EMAIL_SUBJECT_PREFIX or '' + "Test"
message = "Test smtp setting"
message = _("Test smtp setting")
email_from = email_from or email_host_user
email_recipient = email_recipient or email_from
connection = get_connection(