@@ -7,6 +7,7 @@ class ShariXUser(AbstractUser):
avatar = models.ImageField(upload_to="useravatars/", null=True, blank=True, verbose_name="Аватар")
USERNAME_FIELD = "phone_number"
+ REQUIRED_FIELDS = ['username']
@property
def full_name(self):