fix: handover serializer bug2

This commit is contained in:
caoqianming 2024-07-02 23:25:14 +08:00
parent 67ca07bb35
commit 59b8634d3e
1 changed files with 3 additions and 3 deletions

View File

@ -356,7 +356,7 @@ class HandoverSerializer(CustomModelSerializer):
class Meta:
model = Handover
fields = '__all__'
read_only_fields = EXCLUDE_FIELDS + ["batch", "material", "send_dept", "mlog"]
read_only_fields = EXCLUDE_FIELDS + ["mlog"]
extra_kwargs = {
"wm": {"required": True},
"recive_mgroup": {"required": False}