From e5ee913548df19725e68a602a73bb6854ad1e06b Mon Sep 17 00:00:00 2001 From: baoliang Date: Sun, 25 Oct 2020 19:49:42 +0800 Subject: [PATCH] add message --- dashboard/models.py | 28 +++++++++++++++++--- polls/views/__pycache__/user.cpython-38.pyc | Bin 6008 -> 6008 bytes 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/dashboard/models.py b/dashboard/models.py index 2082d5d..d60ed6c 100644 --- a/dashboard/models.py +++ b/dashboard/models.py @@ -33,6 +33,7 @@ class Group(models.Model): ('0', '区域'), ('1', '媒体种类'), ('2', '行业'), + ('3', '管理') ) id = models.UUIDField('id', primary_key=True, default=uuid.uuid4) name = models.CharField('矩阵名称', max_length=256, null=True, blank=True) @@ -79,9 +80,27 @@ class Group_admin(models.Model): # 矩阵成员 +GROUP_USER_STATUS_CHOICES = ( + (0, '已删除'), + (1, '添加申请市级审核中'), + (2, '添加申请省级审核中'), + (3, '正常'), + (4, '注销申请市级审核中'), + (5, '注销申请省级审核中') +) class Group_user(models.Model): + """ + status: + '0': '已删除', + '1': '添加申请市级审核中', + '2': '添加申请省级审核中', + '3': '正常', + '4': '注销申请市级审核中', + '5': '注销申请省级审核中', + """ + id = models.UUIDField('id', primary_key=True, default=uuid.uuid4) user = models.ForeignKey( User, on_delete=models.CASCADE, null=True, blank=True) @@ -126,7 +145,8 @@ class Organization(models.Model): status = models.CharField('状态', max_length=256, null=True, blank=True) # 20201014新添加字段 - id_code = models.CharField('单位唯一标识码', max_length=256, null=True, blank=True) + id_code = models.CharField( + '单位唯一标识码', max_length=256, null=True, blank=True) created = models.DateTimeField('创建时间', auto_now_add=True) updated = models.DateTimeField('更新时间', auto_now=True) @@ -216,7 +236,8 @@ class NewMedia(models.Model): created = models.DateTimeField('创建时间', auto_now_add=True) updated = models.DateTimeField('更新时间', auto_now=True) # 20201015新增字段 - identificationcode = models.CharField('新媒体标识码', max_length=256, null=True, blank=True) + identificationcode = models.CharField( + '新媒体标识码', max_length=256, null=True, blank=True) function = models.CharField('功能', max_length=256, null=True, blank=True) articleurl = models.TextField('文章URL', null=True, blank=True) @@ -660,6 +681,7 @@ class News(models.Model): # 手机验证码验证表 class CheckCode(models.Model): - phone_code = models.CharField('手机验证码', max_length=256, null=True, blank=True) + phone_code = models.CharField( + '手机验证码', max_length=256, null=True, blank=True) phone = models.CharField('电话号', max_length=256, null=True, blank=True) c_time = models.DateTimeField('时间', auto_now_add=True) diff --git a/polls/views/__pycache__/user.cpython-38.pyc b/polls/views/__pycache__/user.cpython-38.pyc index 3071edb48e03e20574ad4a3c55c1dc7150161be8..ccdf190983908c9cf47c16675f8d68dc8d063096 100644 GIT binary patch delta 18 YcmeyN_d|~}l$V!_0SK0D