fix : 字段更改
This commit is contained in:
parent
0824deeadc
commit
cf95f2db0b
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 3.2.12 on 2024-05-08 07:13
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('supervision', '0069_alter_pt_result'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='pt',
|
||||||
|
name='certificate_date',
|
||||||
|
field=models.DateField(blank=True, null=True, verbose_name='证书日期'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -256,7 +256,7 @@ class Pt(CommonBDModel):
|
||||||
params = models.TextField('参加参数名称')
|
params = models.TextField('参加参数名称')
|
||||||
result = models.PositiveSmallIntegerField('结果', choices=pt_result_choices, default=0, help_text=str(pt_result_choices))
|
result = models.PositiveSmallIntegerField('结果', choices=pt_result_choices, default=0, help_text=str(pt_result_choices))
|
||||||
handle_result = models.PositiveSmallIntegerField('处理结果', choices = pt_hresult_choices, default=0, help_text=str(pt_hresult_choices))
|
handle_result = models.PositiveSmallIntegerField('处理结果', choices = pt_hresult_choices, default=0, help_text=str(pt_hresult_choices))
|
||||||
certificate_date = models.DateField('证书日期', null=True, blank=True, default='')
|
certificate_date = models.DateField('证书日期', null=True, blank=True)
|
||||||
field = models.PositiveSmallIntegerField('领域', choices=field_choices, help_text=str(field_choices),default=0)
|
field = models.PositiveSmallIntegerField('领域', choices=field_choices, help_text=str(field_choices),default=0)
|
||||||
a_class = models.BooleanField('A类', default=True)
|
a_class = models.BooleanField('A类', default=True)
|
||||||
task2do = models.ForeignKey('supervision.task2do', verbose_name= '关联任务执行', on_delete=models.SET_NULL, null=True, blank=True)
|
task2do = models.ForeignKey('supervision.task2do', verbose_name= '关联任务执行', on_delete=models.SET_NULL, null=True, blank=True)
|
||||||
|
|
Loading…
Reference in New Issue