新增:用户性别优化

pull/56/head
李强 2022-05-10 17:07:40 +08:00
parent 148a0dec3a
commit f1e79dfc13
1 changed files with 3 additions and 2 deletions

View File

@ -19,10 +19,11 @@ class Users(AbstractUser, CoreModel):
avatar = models.CharField(max_length=255, verbose_name="头像", null=True, blank=True, help_text="头像")
name = models.CharField(max_length=40, verbose_name="姓名", help_text="姓名")
GENDER_CHOICES = (
(0, ""),
(0, "未知"),
(1, ""),
(2, ""),
)
gender = models.IntegerField(choices=GENDER_CHOICES, default=1, verbose_name="性别", null=True, blank=True,
gender = models.IntegerField(choices=GENDER_CHOICES, default=0, verbose_name="性别", null=True, blank=True,
help_text="性别")
USER_TYPE = (
(0, "后台用户"),