mirror of
https://github.com/jazzband/django-authority.git
synced 2026-05-03 05:04:52 +00:00
refs #2: Custom user modal needs a default manager.
This commit is contained in:
parent
7c3756a980
commit
6c7bf2f15f
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin
|
||||
from django.contrib.auth.models import UserManager
|
||||
from django.db import models
|
||||
from django.utils import timezone
|
||||
|
||||
|
|
@ -15,3 +16,5 @@ class User(AbstractBaseUser, PermissionsMixin):
|
|||
is_staff = models.BooleanField(default=False)
|
||||
is_active = models.BooleanField(default=True)
|
||||
date_joined = models.DateTimeField(default=timezone.now)
|
||||
|
||||
objects = UserManager()
|
||||
|
|
|
|||
Loading…
Reference in a new issue