perf: 修改一些翻译

This commit is contained in:
ibuler
2024-02-06 15:51:39 +08:00
parent 96f92f0908
commit 9d80aed468
4 changed files with 20 additions and 1864 deletions

View File

@@ -67,7 +67,7 @@ class AuthMixin:
if self.username:
self.date_password_last_updated = timezone.now()
post_user_change_password.send(self.__class__, user=self)
super().set_password(raw_password) # noqa
super().set_password(raw_password) # noqa
def set_public_key(self, public_key):
if self.can_update_ssh_key():
@@ -381,15 +381,15 @@ class RoleMixin:
@lazyproperty
def console_orgs(self):
return self.cached_orgs['console_orgs']
return self.cached_orgs.get('console_orgs', [])
@lazyproperty
def audit_orgs(self):
return self.cached_orgs['audit_orgs']
return self.cached_orgs.get('audit_orgs', [])
@lazyproperty
def workbench_orgs(self):
return self.cached_orgs['workbench_orgs']
return self.cached_orgs.get('workbench_orgs', [])
@lazyproperty
def joined_orgs(self):