feat: mlogchangeserializer增加生产设备选择

This commit is contained in:
caoqianming 2025-03-31 13:36:25 +08:00
parent 853c28976d
commit 88da422f54
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ class MlogInitSerializer(CustomModelSerializer):
class MlogChangeSerializer(CustomModelSerializer):
class Meta:
model = Mlog
fields = ['id', 'work_end_time', 'handle_user', 'note', 'oinfo_json', 'test_file', 'test_user', 'test_time']
fields = ['id', 'work_end_time', 'handle_user', 'note', 'oinfo_json', 'test_file', 'test_user', 'test_time', 'equipment']
def validate(self, attrs):
if attrs.get('work_end_time', None):