add admin_status to organization
This commit is contained in:
parent
6faa98a88b
commit
2cbe11b8d7
|
@ -117,6 +117,15 @@ class Organizationtype(models.Model):
|
|||
|
||||
|
||||
class Organization(models.Model):
|
||||
"""
|
||||
admin_status:
|
||||
'0': '已删除',
|
||||
'1': '添加申请市级审核中',
|
||||
'2': '添加申请省级审核中',
|
||||
'3': '正常',
|
||||
'4': '注销申请市级审核中',
|
||||
'5': '注销申请省级审核中',
|
||||
"""
|
||||
id = models.UUIDField('id', primary_key=True, default=uuid.uuid4)
|
||||
name = models.CharField('单位名', max_length=256, null=True, blank=True)
|
||||
image = models.FileField(upload_to='cover', null=True, blank=True)
|
||||
|
@ -131,13 +140,13 @@ class Organization(models.Model):
|
|||
Level, on_delete=models.CASCADE, null=True, blank=True)
|
||||
directly = models.CharField('单位类型', max_length=256, null=True, blank=True)
|
||||
status = models.CharField('状态', max_length=256, null=True, blank=True)
|
||||
|
||||
# 20201014新添加字段
|
||||
id_code = models.CharField(
|
||||
'单位唯一标识码', max_length=256, null=True, blank=True)
|
||||
|
||||
created = models.DateTimeField('创建时间', auto_now_add=True)
|
||||
updated = models.DateTimeField('更新时间', auto_now=True)
|
||||
admin_status = models.IntegerField('管理状态', default=3)
|
||||
|
||||
class Meta:
|
||||
ordering = ["name"]
|
||||
|
|
Loading…
Reference in New Issue