Browse Source

feat: 修改迁移文件

pull/6233/head
Bai 4 years ago committed by Jiangjie.Bai
parent
commit
a8d84fc6e1
  1. BIN
      apps/locale/zh/LC_MESSAGES/django.mo
  2. 494
      apps/locale/zh/LC_MESSAGES/django.po
  3. 18
      apps/users/migrations/0036_auto_20210604_1124.py
  4. 2
      apps/users/models/user.py

BIN
apps/locale/zh/LC_MESSAGES/django.mo

Binary file not shown.

494
apps/locale/zh/LC_MESSAGES/django.po

File diff suppressed because it is too large Load Diff

18
apps/users/migrations/0036_auto_20210604_1124.py

@ -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'),
),
]

2
apps/users/models/user.py

@ -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,

Loading…
Cancel
Save