SOME ABEBE

This commit is contained in:
ITQ
2025-03-01 02:44:45 +03:00
parent 930fb23bbc
commit baacef032a
8 changed files with 75 additions and 9 deletions
+4 -2
View File
@@ -13,9 +13,11 @@ class User(BaseModel):
username = models.SlugField(unique=True, verbose_name="Юзернейм")
password = models.TextField(verbose_name="Пароль")
status = models.CharField(max_length=10, choices=UserRole.choices, default=UserRole.STUDENT)
status = models.CharField(
max_length=10, choices=UserRole.choices, default=UserRole.STUDENT
)
def __str__(self):
def __str__(self) -> str:
return self.username
class Meta: