Commit 5c67da2e authored by David Seaward's avatar David Seaward

minimal usermanager for new user model (with migration script)

parent 845261c7
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-10 13:40
from __future__ import unicode_literals
from django.db import migrations
import ldapregister.models
class Migration(migrations.Migration):
dependencies = [
('ldapregister', '0001_initial'),
]
operations = [
migrations.AlterModelManagers(
name='user',
managers=[
('objects', ldapregister.models.UserManager()),
],
),
]
from django.contrib.auth.models import AbstractUser
from django.contrib.auth.models import UserManager as BaseUserManager
class User(AbstractUser):
class UserManager(BaseUserManager):
pass
class User(AbstractUser):
objects = UserManager()
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