Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User(AbstractUser):
- username = None
- email = models.EmailField(_('email address'), unique=True)
- # this is the magic!
- is_active = models.BooleanField(default=False)
- USERNAME_FIELD = 'email'
- REQUIRED_FIELDS = []
- objects = UserManager()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement