Commit e010d2c8 authored by Linus Lewandowski's avatar Linus Lewandowski

Switch from FullNameMixin to NamePartsMixin.

TODO Find a good way to make it configurable on a per-environment basis.
parent bf7bb70d
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-05 17:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aiakos', '0002_oauth'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='name',
),
migrations.RemoveField(
model_name='user',
name='nickname',
),
migrations.AddField(
model_name='user',
name='family_name',
field=models.CharField(blank=True, max_length=200, verbose_name='family name'),
),
migrations.AddField(
model_name='user',
name='given_name',
field=models.CharField(blank=True, max_length=200, verbose_name='given name'),
),
migrations.AddField(
model_name='user',
name='middle_name',
field=models.CharField(blank=True, max_length=200, verbose_name='middle name'),
),
]
......@@ -32,7 +32,7 @@ AUTH_USER_MODEL = 'aiakos.User'
USER_CORE_MODULES = [
'django_modular_user.user:AbstractBaseUser',
'django_modular_user.user:UsernameMixin',
'django_modular_user.user:FullNameMixin',
'django_modular_user.user:NamePartsMixin',
'django_modular_user.user:PasswordMixin',
'django_modular_user.user:ActiveMixin',
'django_modular_user.user:StaffMixin',
......
......@@ -2,7 +2,8 @@
pk: '00000000-0000-0000-0000-000000000000'
fields:
username: root
name: The Administrator
given_name: The
family_name: Administrator
password: pbkdf2_sha256$36000$yiaCSUyKhHxt$eo1u1o/2CdRlThWrYXxn0ILeDrKBjoVBn0yh1DUpwVM= # root
is_superuser: true
is_staff: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment