<gh_stars>1-10
from django.db import models
from django.contrib.auth.models import AbstractUser, Group


class User(AbstractUser):
    first_name = models.CharField(max_length=25)
    last_name = models.CharField(max_length=25)
    email = models.EmailField(unique=True)

    USERNAME_FIELD = 'username'
    REQUIRED_FIELDS = ['last_name', 'groups', 'email']

    def __str__(self):
        return self.username
