test_int bug

This commit is contained in:
caoqianming 2021-12-16 13:02:40 +08:00
parent 6c5b4eea6e
commit 1d8cdb4c5c
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Generated by Django 3.2.9 on 2021-12-16 03:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mtm', '0042_alter_recordformfield_field_type'),
('wpm', '0033_auto_20211216_0945'),
]
operations = [
migrations.AlterField(
model_name='operationrecorditem',
name='form_field',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ori_form_field', to='mtm.recordformfield', verbose_name='关联字段'),
),
migrations.AlterField(
model_name='operationrecorditem',
name='operation_record',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='item_operation_record', to='wpm.operationrecord', verbose_name='关联的生产记录'),
),
]

View File

@ -205,6 +205,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet):
savedict = dict( savedict = dict(
create_by = self.request.user, create_by = self.request.user,
wproduct=wproduct,
material=wproduct.material, material=wproduct.material,
number=wproduct.number, number=wproduct.number,
subproduction_plan=wproduct.subproduction_plan, subproduction_plan=wproduct.subproduction_plan,