2013-06-05 00:37:44 +08:00
|
|
|
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
|
2015-01-28 20:35:27 +08:00
|
|
|
from django.db import models
|
2013-06-05 00:37:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
class CustomUser(AbstractBaseUser):
|
|
|
|
email = models.EmailField(verbose_name="email address", max_length=255, unique=True)
|
|
|
|
custom_objects = BaseUserManager()
|
|
|
|
|
|
|
|
USERNAME_FIELD = "email"
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
app_label = "test_client_regress"
|