class UserInfo(AbstractUser): phone = models.BigIntegerField(null=True, blank=True) create_time = models.DateField(auto_now_add=True) blog = models.OneToOneField(to='Blog', null=True) avatar = models.FileField(upload_to='avatar/', default='avatar/default_avatar.jpg') def __str__(self): return self.username class Meta: verbose_name_plural = '用户表' # verbose_name = '用户表' # 用这个默认会在用户名后面加个s后缀,不建议使用