mirror of https://github.com/jumpserver/jumpserver
fix: 修改应用账号APP名称的VerboseName
parent
b8aaa7d249
commit
518caa4f7a
|
@ -0,0 +1,24 @@
|
||||||
|
# Generated by Django 3.1.13 on 2022-01-18 06:55
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('applications', '0015_auto_20220112_2035'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='account',
|
||||||
|
name='app',
|
||||||
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='applications.application', verbose_name='Application'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='historicalaccount',
|
||||||
|
name='app',
|
||||||
|
field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='applications.application', verbose_name='Application'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -9,7 +9,7 @@ from assets.models.base import BaseUser
|
||||||
|
|
||||||
class Account(BaseUser):
|
class Account(BaseUser):
|
||||||
app = models.ForeignKey(
|
app = models.ForeignKey(
|
||||||
'applications.Application', on_delete=models.CASCADE, null=True, verbose_name=_('Database')
|
'applications.Application', on_delete=models.CASCADE, null=True, verbose_name=_('Application')
|
||||||
)
|
)
|
||||||
systemuser = models.ForeignKey(
|
systemuser = models.ForeignKey(
|
||||||
'assets.SystemUser', on_delete=models.CASCADE, null=True, verbose_name=_("System user")
|
'assets.SystemUser', on_delete=models.CASCADE, null=True, verbose_name=_("System user")
|
||||||
|
|
Loading…
Reference in New Issue