Browse Source

perf: 修改 migrations

pull/10681/head
ibuler 1 year ago committed by Jiangjie.Bai
parent
commit
a99d22708c
  1. 6
      apps/acls/migrations/0008_commandgroup_comment.py
  2. 2
      apps/acls/migrations/0015_connectmethodacl.py
  3. 4
      apps/terminal/migrations/0062_applet_edition.py

6
apps/acls/migrations/0008_commandgroup_comment.py

@ -20,14 +20,14 @@ class Migration(migrations.Migration):
),
migrations.AlterModelOptions(
name='commandfilteracl',
options={'ordering': ('priority', 'date_updated', 'name'), 'verbose_name': 'Command acl'},
options={'ordering': ('priority', 'name'), 'verbose_name': 'Command acl'},
),
migrations.AlterModelOptions(
name='loginacl',
options={'ordering': ('priority', 'date_updated', 'name'), 'verbose_name': 'Login acl'},
options={'ordering': ('priority', 'name'), 'verbose_name': 'Login acl'},
),
migrations.AlterModelOptions(
name='loginassetacl',
options={'ordering': ('priority', 'date_updated', 'name'), 'verbose_name': 'Login asset acl'},
options={'ordering': ('priority', 'name'), 'verbose_name': 'Login asset acl'},
),
]

2
apps/acls/migrations/0015_connectmethodacl.py

@ -39,7 +39,7 @@ class Migration(migrations.Migration):
models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL, verbose_name='Reviewers')),
],
options={
'ordering': ('priority', 'date_updated', 'name'),
'ordering': ('priority', 'name'),
'abstract': False,
},
),

4
apps/terminal/migrations/0062_applet_edition.py

@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('terminal', '0061_applet_can_concurrent'),
]
@ -13,6 +12,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='applet',
name='edition',
field=models.CharField(default='community', max_length=128, verbose_name='Edition'),
field=models.CharField(choices=[('community', 'Community'), ('enterprise', 'Enterprise')],
default='community', max_length=128, verbose_name='Edition'),
),
]

Loading…
Cancel
Save