From dab2d164b13dc9920014f5bf37300db8d511ca6b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 6 Jul 2023 08:39:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=80=BC=E7=8F=AD=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=80=E5=90=8E=E8=B4=A8=E6=A3=80=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0004_sflog_last_test_time.py | 18 ++++++++++++++++++ apps/wpm/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/wpm/migrations/0004_sflog_last_test_time.py diff --git a/apps/wpm/migrations/0004_sflog_last_test_time.py b/apps/wpm/migrations/0004_sflog_last_test_time.py new file mode 100644 index 00000000..73226c94 --- /dev/null +++ b/apps/wpm/migrations/0004_sflog_last_test_time.py @@ -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='最后质检时间'), + ), + ] diff --git a/apps/wpm/models.py b/apps/wpm/models.py index 5d3e7dd9..71661269 100644 --- a/apps/wpm/models.py +++ b/apps/wpm/models.py @@ -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):