feat: 修改迁移文件

pull/6233/head
Bai 2021-06-04 11:38:00 +08:00 committed by Jiangjie.Bai
parent 0c7838d0e3
commit a8d84fc6e1
4 changed files with 261 additions and 253 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.6 on 2021-06-04 03:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0035_auto_20210526_1100'),
]
operations = [
migrations.AlterField(
model_name='user',
name='source',
field=models.CharField(choices=[('local', 'Local'), ('ldap', 'LDAP/AD'), ('openid', 'OpenID'), ('radius', 'Radius'), ('cas', 'CAS')], default='local', max_length=30, verbose_name='User source'),
),
]

View File

@ -593,7 +593,7 @@ class User(AuthMixin, TokenMixin, RoleMixin, MFAMixin, AbstractUser):
source = models.CharField(
max_length=30, default=Source.local,
choices=Source.choices,
verbose_name=_('User source')
verbose_name=_('Source')
)
date_password_last_updated = models.DateTimeField(
auto_now_add=True, blank=True, null=True,