Exesize
1from django.contrib.auth.models import AbstractUser2from django.db import models3from django.utils.translation import gettext_lazy as _4
5from mainapp.models import NULLABLE6
7
8class User(AbstractUser):9email = models.EmailField(blank=True, verbose_name=_("email"), unique=True)10age = models.PositiveSmallIntegerField(verbose_name=_("age"), **NULLABLE)11avatar = models.ImageField(upload_to="users", verbose_name=_("avatar"), **NULLABLE)12
13class Meta:14verbose_name = "Пользователь"15verbose_name_plural = "Пользователи"16