增加注释

增加注释
This commit is contained in:
何全
2019-03-03 19:47:52 +08:00
parent 97421d2659
commit a130ca70bd
4 changed files with 12 additions and 6 deletions

View File

@@ -2,8 +2,10 @@ from django.db import models
from django.contrib.auth.models import AbstractUser, Group, User
# Create your models here.
class Users(AbstractUser):
"""
基于django表 添加字段 , 如有需要调用user的情况,请使用此表
"""
position = models.CharField(max_length=64, verbose_name='职位信息', blank=True, null=True)
avatar = models.CharField(max_length=256, verbose_name='头像', blank=True, null=True)
mobile = models.CharField(max_length=11, verbose_name='手机', blank=True, null=True)