diff --git a/apps/users/migrations/0027_auto_20200616_1503.py b/apps/users/migrations/0027_auto_20200616_1503.py new file mode 100644 index 0000000000000000000000000000000000000000..2a7fb014e6d298c49c9a82c23b5fe9191c4ac99b --- /dev/null +++ b/apps/users/migrations/0027_auto_20200616_1503.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.10 on 2020-06-16 07:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0026_auto_20200508_2105'), + ] + + 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='Source'), + ), + ] diff --git a/apps/users/models/user.py b/apps/users/models/user.py index 3fb05839636a9b31d66fb97085786f916b4d1c8d..d0ab12c38fe9d28ba9862e357ca0ae173b171366 100644 --- a/apps/users/models/user.py +++ b/apps/users/models/user.py @@ -507,7 +507,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_LDAP, choices=SOURCE_CHOICES, + max_length=30, default=SOURCE_LOCAL, choices=SOURCE_CHOICES, verbose_name=_('Source') ) date_password_last_updated = models.DateTimeField(