From 9ccfcbec03e64d6fd80df48e4830d3f33519e101 Mon Sep 17 00:00:00 2001 From: TianyangZhang Date: Tue, 25 Nov 2025 16:27:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20:=20srm=20=E4=BF=AE=E6=94=B9=20paperr?= =?UTF-8?q?ecord=20=E5=AD=97=E6=AE=B5=20cor=5Fauthor=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0010_alter_paperrecord_cor_author.py | 18 ++++++++++++++++++ apps/srm/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apps/srm/migrations/0010_alter_paperrecord_cor_author.py diff --git a/apps/srm/migrations/0010_alter_paperrecord_cor_author.py b/apps/srm/migrations/0010_alter_paperrecord_cor_author.py new file mode 100644 index 00000000..c954d5a9 --- /dev/null +++ b/apps/srm/migrations/0010_alter_paperrecord_cor_author.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2025-11-25 08:26 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('srm', '0009_auto_20251125_1616'), + ] + + operations = [ + migrations.AlterField( + model_name='paperrecord', + name='cor_author', + field=models.CharField(blank=True, max_length=100, null=True, verbose_name='通讯作者'), + ), + ] diff --git a/apps/srm/models.py b/apps/srm/models.py index e60b827a..f4c13178 100644 --- a/apps/srm/models.py +++ b/apps/srm/models.py @@ -95,7 +95,7 @@ class PaperRecord(CommonADModel): pa_type = models.CharField('论文类型', max_length=50, choices=PAPER_TYPE_CHOICES, default='invention') 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="通讯作者") + cor_author = models.CharField(max_length=100, null=True, blank=True, verbose_name="通讯作者") affiliated_platforms = models.CharField(max_length=255, blank=True, verbose_name="归属平台") affiliated_projects = models.CharField(max_length=255, blank=True, verbose_name="归属项目") accept_date = models.DateField(null=True, blank=True, verbose_name="接受日期") From e98027776c40d3955f1e52323421b60caf0c7d2c Mon Sep 17 00:00:00 2001 From: TianyangZhang Date: Tue, 25 Nov 2025 16:38:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20srm=20-model-Papersecret=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20organization=20=E7=94=B3=E8=AF=B7=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../srm/migrations/0011_auto_20251125_1637.py | 24 +++++++++++++++++++ apps/srm/models.py | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 apps/srm/migrations/0011_auto_20251125_1637.py diff --git a/apps/srm/migrations/0011_auto_20251125_1637.py b/apps/srm/migrations/0011_auto_20251125_1637.py new file mode 100644 index 00000000..1abf43a5 --- /dev/null +++ b/apps/srm/migrations/0011_auto_20251125_1637.py @@ -0,0 +1,24 @@ +# Generated by Django 3.2.12 on 2025-11-25 08:37 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('srm', '0010_alter_paperrecord_cor_author'), + ] + + operations = [ + migrations.AddField( + model_name='papersecret', + name='organization', + field=models.CharField(default='CE', max_length=100, verbose_name='申请部门'), + preserve_default=False, + ), + migrations.AlterField( + model_name='patentrecord', + name='organization', + field=models.CharField(max_length=100, verbose_name='申请部门'), + ), + ] diff --git a/apps/srm/models.py b/apps/srm/models.py index f4c13178..f1410c88 100644 --- a/apps/srm/models.py +++ b/apps/srm/models.py @@ -37,6 +37,7 @@ class Papersecret(CommonBDModel): paper_name = models.CharField('拟发表论文名称', max_length=100) publication_name = models.CharField('拟投期刊名称', max_length=100) author = models.CharField('作者', max_length=100) + organization = models.CharField(max_length=100, verbose_name="申请部门") paper_type = models.CharField('拟发表文章类型', max_length=100) is_chinese_core = models.BooleanField('是否为中文核心', default=False) is_sci = models.BooleanField('是否被SCI/EI收录', default=False) @@ -56,7 +57,7 @@ class PatentRecord(CommonADModel): application_number = models.CharField(max_length=50, null=True, blank=True, verbose_name="申请号(交局后补登)") patent = models.ForeignKey('PatentInfo', verbose_name="专利名称", on_delete=models.CASCADE, related_name='patent_record') pc_type = models.CharField('专利类型', max_length=50, choices=PATENT_TYPE_CHOICES, default='invention') - organization = models.CharField(max_length=100, verbose_name="单位") + organization = models.CharField(max_length=100, verbose_name="申请部门") inventors = models.CharField(max_length=255, verbose_name="发明人") agent = models.CharField(max_length=255, null=True, blank=True, verbose_name="代理人") affiliated_platforms = models.CharField(max_length=255, blank=True, verbose_name="归属平台")