USERNAME_FIELD = 'email'
class User(AbstractUser):
"""User model."""
username = None # Можете выпилить username если он вам не нужен
email = models.EmailField(_('email address'), unique=True)
USERNAME_FIELD = 'email'
REQUIRED_FIELDS = []
AUTH_USER_MODEL = 'YOUR_APP.User'