diff --git a/apps/assets/migrations/0080_auto_20211104_1347.py b/apps/assets/migrations/0080_auto_20211104_1347.py index a456c825e..75210149e 100644 --- a/apps/assets/migrations/0080_auto_20211104_1347.py +++ b/apps/assets/migrations/0080_auto_20211104_1347.py @@ -14,7 +14,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='systemuser', name='su_enabled', - field=models.BooleanField(default=False, verbose_name='Switch user'), + field=models.BooleanField(default=False, verbose_name='User switch'), ), migrations.AddField( model_name='systemuser', diff --git a/apps/assets/models/user.py b/apps/assets/models/user.py index 48f2bac30..5f1a8df76 100644 --- a/apps/assets/models/user.py +++ b/apps/assets/models/user.py @@ -209,7 +209,7 @@ class SystemUser(ProtocolMixin, AuthMixin, BaseUser): system_groups = models.CharField(default='', max_length=4096, verbose_name=_('System groups'), blank=True) ad_domain = models.CharField(default='', max_length=256) # linux su 命令 (switch user) - su_enabled = models.BooleanField(default=False, verbose_name=_('Switch user')) + su_enabled = models.BooleanField(default=False, verbose_name=_('User switch')) su_from = models.ForeignKey('self', on_delete=models.SET_NULL, related_name='su_to', null=True, verbose_name=_("Switch from")) def __str__(self): diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index 5dbd80da8..ee33a1fcc 100644 --- a/apps/locale/zh/LC_MESSAGES/django.mo +++ b/apps/locale/zh/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ed378b8e141b884f9b6d82135b37446c02d6621b46f282461e733d610b36030d +oid sha256:3cb74767fc92b67608deb32d27bf945b7fd4ad46fc02f0cc5ef4cf4a42ebcd10 size 91465 diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 9584d0cc5..b7912c24a 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -837,8 +837,8 @@ msgid "System groups" msgstr "用户组" #: assets/models/user.py:212 -msgid "Switch user" -msgstr "切换用户" +msgid "User switch" +msgstr "用户切换" #: assets/models/user.py:213 msgid "Switch from"