测试组/Test_platform/Interface_automation/backend/apps/lunaruser/models.py
@@ -2,7 +2,6 @@ from django.contrib.auth.models import AbstractUser # Create your models here. class MyUser(AbstractUser): """ 使用AbstractUser可以对User进行扩展使用,添加用户自定义的属性 @@ -27,6 +26,18 @@ null=True, help_text="姓名", ) STATUS_CHOICES = ( ('pending', '待审核'), ('approved', '已通过'), ('rejected', '未通过'), ) status = models.CharField( verbose_name="状态", max_length=20, choices=STATUS_CHOICES, default='approved', help_text="用户状态", ) class Meta(AbstractUser.Meta): pass