text: from django.db import models
  from django.contrib.auth.models import AbstractUser
  from django.utils.translation import ugettext_lazy as _
  from django.utils import timezone
  
  from .managers import EmailUserManager
  
  
  class EmailUser(AbstractUser):
      username = None
      email = models.EmailField(_('email address'), unique=True)
  
      USERNAME_FIELD = 'email'
      REQUIRED_FIELDS = []
  
      objects = EmailUserManager()
  
      def __str__(self):
          return self.email
  