feat: ofm-publicity 修改model 字段

This commit is contained in:
TianyangZhang 2025-11-07 09:23:32 +08:00
parent 62af92075d
commit 37de4c1bfd
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,28 @@
# Generated by Django 3.2.12 on 2025-11-06 08:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ofm', '0030_auto_20251105_1715'),
]
operations = [
migrations.AddField(
model_name='publicity',
name='disposal_method',
field=models.CharField(blank=True, max_length=50, null=True, verbose_name='处理方式'),
),
migrations.AddField(
model_name='publicity',
name='secret_level',
field=models.CharField(blank=True, max_length=50, null=True, verbose_name='秘密等级'),
),
migrations.AlterField(
model_name='publicity',
name='dept_opinion',
field=models.CharField(blank=True, max_length=100, null=True, verbose_name='部门负责人意见'),
),
]

View File

@ -135,7 +135,9 @@ class Publicity(CommonBDModel):
other_channel = models.CharField('其它渠道', max_length=50, blank=True, null=True) other_channel = models.CharField('其它渠道', max_length=50, blank=True, null=True)
report_name = models.CharField('报道名称', max_length=50, blank=True, null=True) report_name = models.CharField('报道名称', max_length=50, blank=True, null=True)
review = models.JSONField('第一撰稿人自审', default=list, help_text=str(['内容不涉及国家秘密和商业秘密,申请公开', '内容涉及国家秘密,申请按涉密渠道发布']), null=True,blank=True) review = models.JSONField('第一撰稿人自审', default=list, help_text=str(['内容不涉及国家秘密和商业秘密,申请公开', '内容涉及国家秘密,申请按涉密渠道发布']), null=True,blank=True)
dept_opinion = models.JSONField('部门负责人意见', default=list, help_text=str(['同意', '不同意']), null=True, blank=True) dept_opinion = models.CharField('部门负责人意见', max_length=100, blank=True, null=True)
disposal_method = models.CharField('处理方式', max_length=50, blank=True, null=True)
secret_level = models.CharField('秘密等级', max_length=50, blank=True, null=True)
secret_period = models.CharField('秘密期限', max_length=50, blank=True, null=True) secret_period = models.CharField('秘密期限', max_length=50, blank=True, null=True)
dept_opinion_review = models.CharField('部门审查意见', max_length=100, blank=True, null=True) dept_opinion_review = models.CharField('部门审查意见', max_length=100, blank=True, null=True)
publicity_opinion = models.CharField('宣传报道意见', max_length=100, blank=True, null=True) publicity_opinion = models.CharField('宣传报道意见', max_length=100, blank=True, null=True)