[Update] 修改serailizer mixin

This commit is contained in:
ibuler
2020-04-09 10:33:20 +08:00
parent f8dae2a3c9
commit e7031d0ac1
4 changed files with 36 additions and 6 deletions

View File

@@ -481,7 +481,7 @@ class User(AuthMixin, TokenMixin, RoleMixin, MFAMixin, AbstractUser):
max_length=30, default='', blank=True, verbose_name=_('Created by')
)
source = models.CharField(
max_length=30, default=SOURCE_LOCAL, choices=SOURCE_CHOICES,
max_length=30, default=SOURCE_LDAP, choices=SOURCE_CHOICES,
verbose_name=_('Source')
)
date_password_last_updated = models.DateTimeField(