Ad uchun api chiqarildi

This commit is contained in:
2025-11-28 16:49:38 +05:00
parent 94f129c446
commit 97e7098b9e
24 changed files with 600 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ class User(auth_models.AbstractUser):
choices=RoleChoice,
default=RoleChoice.USER,
)
avatar = models.ImageField("Avatar", upload_to="avatars/", default="avatars/default.png")
USERNAME_FIELD = "phone"
objects = UserManager()