fix : srm 修改 paperrecord 字段 cor_author 字段类型

This commit is contained in:
TianyangZhang 2025-11-25 16:27:26 +08:00
parent f66e5bd9df
commit 9ccfcbec03
2 changed files with 19 additions and 1 deletions

View File

@ -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='通讯作者'),
),
]

View File

@ -95,7 +95,7 @@ class PaperRecord(CommonADModel):
pa_type = models.CharField('论文类型', max_length=50, choices=PAPER_TYPE_CHOICES, default='invention') 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="作者") 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_platforms = models.CharField(max_length=255, blank=True, verbose_name="归属平台")
affiliated_projects = 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="接受日期") accept_date = models.DateField(null=True, blank=True, verbose_name="接受日期")