From 004833292d29a9b4ced9882cf0b6a81d47951da9 Mon Sep 17 00:00:00 2001 From: TianyangZhang Date: Tue, 25 Nov 2025 16:17:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Asrm=20=E4=BF=AE=E6=94=B9=E8=AE=BA?= =?UTF-8?q?=E6=96=87=E5=AE=A1=E6=89=B9=20=E5=8F=8D=E5=AD=98=20=E8=AE=BA?= =?UTF-8?q?=E6=96=87=E5=8F=B0=E8=B4=A6=20=E4=B8=BB=E8=A6=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9model=20=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../srm/migrations/0009_auto_20251125_1616.py | 23 +++++++++++++++++++ apps/srm/models.py | 6 +++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 apps/srm/migrations/0009_auto_20251125_1616.py diff --git a/apps/srm/migrations/0009_auto_20251125_1616.py b/apps/srm/migrations/0009_auto_20251125_1616.py new file mode 100644 index 00000000..c0b7daa8 --- /dev/null +++ b/apps/srm/migrations/0009_auto_20251125_1616.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.12 on 2025-11-25 08:16 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('srm', '0008_alter_patentrecord_status'), + ] + + operations = [ + migrations.AlterField( + model_name='paperrecord', + name='organization', + field=models.CharField(max_length=100, verbose_name='申请部门'), + ), + migrations.AlterField( + model_name='paperrecord', + name='status', + field=models.CharField(blank=True, choices=[('审稿中', '审稿中'), ('一修', '一修'), ('二修', '二修'), ('接收', '接收'), ('发表', '发表')], max_length=20, null=True, verbose_name='状态'), + ), + ] diff --git a/apps/srm/models.py b/apps/srm/models.py index 58876567..e60b827a 100644 --- a/apps/srm/models.py +++ b/apps/srm/models.py @@ -93,7 +93,7 @@ class PaperRecord(CommonADModel): paper_number = models.CharField(max_length=50, null=True, blank=True, verbose_name="论文编号(投稿后补登)") paper = models.ForeignKey('Papersecret', verbose_name="论文名称", on_delete=models.CASCADE, related_name='paper_record') pa_type = models.CharField('论文类型', max_length=50, choices=PAPER_TYPE_CHOICES, default='invention') - organization = models.CharField(max_length=100, verbose_name="单位") + organization = models.CharField(max_length=100, verbose_name="申请部门") author = models.CharField(max_length=100, verbose_name="作者") cor_author = models.CharField(max_length=100, verbose_name="通讯作者") affiliated_platforms = models.CharField(max_length=255, blank=True, verbose_name="归属平台") @@ -111,7 +111,9 @@ class PaperRecord(CommonADModel): ("接收", "接收"), ("发表", "发表"), ], - verbose_name="状态" + verbose_name="状态", + null=True, + blank=True ) award_info = models.TextField(null=True, blank=True, verbose_name="报奖情况") bonus_amount = models.DecimalField(max_digits=10,decimal_places=2, null=True,blank=True,verbose_name="奖金金额(元)")