feat: 值班记录增加最后质检时间

This commit is contained in:
caoqianming 2023-07-06 08:39:57 +08:00
parent 46a5aa7cc7
commit dab2d164b1
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2023-07-06 00:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wpm', '0003_auto_20230628_0859'),
]
operations = [
migrations.AddField(
model_name='sflog',
name='last_test_time',
field=models.DateTimeField(blank=True, null=True, verbose_name='最后质检时间'),
),
]

View File

@ -25,6 +25,7 @@ class SfLog(CommonADModel):
end_time = models.DateTimeField('值班结束')
note = models.TextField('其他备注', null=True, blank=True)
stlogs = models.ManyToManyField('wpm.stlog', verbose_name='关联停机记录', through='wpm.stsflog')
last_test_time = models.DateTimeField('最后质检时间', null=True, blank=True)
class StSfLog(BaseModel):