fix: 修改文案 切换用户 -> 用户切换

pull/7145/head
Michael Bai 2021-11-05 16:39:08 +08:00 committed by Jiangjie.Bai
parent 07c60ca75d
commit f9e970f4ed
4 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='systemuser', model_name='systemuser',
name='su_enabled', name='su_enabled',
field=models.BooleanField(default=False, verbose_name='Switch user'), field=models.BooleanField(default=False, verbose_name='User switch'),
), ),
migrations.AddField( migrations.AddField(
model_name='systemuser', model_name='systemuser',

View File

@ -209,7 +209,7 @@ class SystemUser(ProtocolMixin, AuthMixin, BaseUser):
system_groups = models.CharField(default='', max_length=4096, verbose_name=_('System groups'), blank=True) system_groups = models.CharField(default='', max_length=4096, verbose_name=_('System groups'), blank=True)
ad_domain = models.CharField(default='', max_length=256) ad_domain = models.CharField(default='', max_length=256)
# linux su 命令 (switch user) # 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")) su_from = models.ForeignKey('self', on_delete=models.SET_NULL, related_name='su_to', null=True, verbose_name=_("Switch from"))
def __str__(self): def __str__(self):

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:ed378b8e141b884f9b6d82135b37446c02d6621b46f282461e733d610b36030d oid sha256:3cb74767fc92b67608deb32d27bf945b7fd4ad46fc02f0cc5ef4cf4a42ebcd10
size 91465 size 91465

View File

@ -837,8 +837,8 @@ msgid "System groups"
msgstr "用户组" msgstr "用户组"
#: assets/models/user.py:212 #: assets/models/user.py:212
msgid "Switch user" msgid "User switch"
msgstr "切换用户" msgstr "用户切换"
#: assets/models/user.py:213 #: assets/models/user.py:213
msgid "Switch from" msgid "Switch from"