Browse Source

perf: migrations i18n

pull/13291/head
Bai 6 months ago
parent
commit
43215d27c5
  1. 2
      apps/acls/migrations/0001_initial.py
  2. 2
      apps/assets/migrations/0001_initial.py
  3. 4
      apps/audits/migrations/0001_initial.py
  4. 4
      apps/terminal/migrations/0001_initial.py

2
apps/acls/migrations/0001_initial.py

@ -50,7 +50,7 @@ class Migration(migrations.Migration):
('org_id', models.CharField(blank=True, db_index=True, default='', max_length=36, verbose_name='Organization')),
('name', models.CharField(max_length=128, verbose_name='Name')),
('type', models.CharField(choices=[('command', 'Command'), ('regex', 'Regex')], default='command', max_length=16, verbose_name='Type')),
('content', models.TextField(help_text='One line one command', verbose_name='Content')),
('content', models.TextField(help_text='One command per line', verbose_name='Content')),
('ignore_case', models.BooleanField(default=True, verbose_name='Ignore case')),
],
options={

2
apps/assets/migrations/0001_initial.py

@ -30,7 +30,7 @@ class Migration(migrations.Migration):
('date_verified', models.DateTimeField(null=True, verbose_name='Date verified')),
('name', models.CharField(max_length=128, verbose_name='Name')),
('address', models.CharField(db_index=True, max_length=767, verbose_name='Address')),
('is_active', models.BooleanField(default=True, verbose_name='Is active')),
('is_active', models.BooleanField(default=True, verbose_name='Active')),
('gathered_info', models.JSONField(blank=True, default=dict, verbose_name='Gathered info')),
('custom_info', models.JSONField(default=dict, verbose_name='Custom info')),
],

4
apps/audits/migrations/0001_initial.py

@ -95,7 +95,7 @@ class Migration(migrations.Migration):
('reason', models.CharField(blank=True, default='', max_length=128, verbose_name='Reason')),
('status', models.BooleanField(choices=[(1, 'Success'), (0, 'Failed')], default=1, verbose_name='Status')),
('datetime', models.DateTimeField(db_index=True, default=django.utils.timezone.now, verbose_name='Login Date')),
('backend', models.CharField(default='', max_length=32, verbose_name='Authentication backend')),
('backend', models.CharField(default='', max_length=32, verbose_name='Auth backend')),
],
options={
'verbose_name': 'User login log',
@ -111,7 +111,7 @@ class Migration(migrations.Migration):
('city', models.CharField(blank=True, max_length=254, null=True, verbose_name='Login city')),
('user_agent', models.CharField(blank=True, max_length=254, null=True, verbose_name='User agent')),
('type', models.CharField(choices=[('W', 'Web'), ('T', 'Terminal'), ('U', 'Unknown')], max_length=2, verbose_name='Login type')),
('backend', models.CharField(default='', max_length=32, verbose_name='Authentication backend')),
('backend', models.CharField(default='', max_length=32, verbose_name='Auth backend')),
('date_created', models.DateTimeField(blank=True, null=True, verbose_name='Date created')),
],
options={

4
apps/terminal/migrations/0001_initial.py

@ -183,7 +183,7 @@ class Migration(migrations.Migration):
('ip_group', models.JSONField(default=list, verbose_name='IP group')),
('priority', models.IntegerField(help_text='1-100, the lower the value will be match first', unique=True, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(100)], verbose_name='Priority')),
('comment', models.TextField(blank=True, default='', verbose_name='Comment')),
('is_active', models.BooleanField(default=True, verbose_name='Is active')),
('is_active', models.BooleanField(default=True, verbose_name='Active')),
],
options={
'verbose_name': 'Endpoint rule',
@ -218,7 +218,7 @@ class Migration(migrations.Migration):
('asset', models.CharField(db_index=True, max_length=128, verbose_name='Asset')),
('asset_id', models.CharField(blank=True, db_index=True, default='', max_length=36)),
('account', models.CharField(db_index=True, max_length=128, verbose_name='Account')),
('account_id', models.CharField(db_index=True, max_length=128, verbose_name='Account id')),
('account_id', models.CharField(db_index=True, max_length=128, verbose_name='Account ID')),
('protocol', models.CharField(db_index=True, default='ssh', max_length=16)),
('login_from', models.CharField(choices=[('ST', 'SSH Terminal'), ('RT', 'RDP Terminal'), ('WT', 'Web Terminal'), ('DT', 'DB Terminal')], default='ST', max_length=2, verbose_name='Login from')),
('type', models.CharField(db_index=True, default='normal', max_length=16)),

Loading…
Cancel
Save