feat: handoverserializer type设置为非必填
This commit is contained in:
parent
92fc1e9e0a
commit
19cac7729a
|
|
@ -459,6 +459,7 @@ class HandoverSerializer(CustomModelSerializer):
|
||||||
fields = '__all__'
|
fields = '__all__'
|
||||||
read_only_fields = EXCLUDE_FIELDS + ["mlog"]
|
read_only_fields = EXCLUDE_FIELDS + ["mlog"]
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
|
"type": {"required": False},
|
||||||
"wm": {"required": True},
|
"wm": {"required": True},
|
||||||
"send_dept": {"required": False},
|
"send_dept": {"required": False},
|
||||||
"recive_mgroup": {"required": False},
|
"recive_mgroup": {"required": False},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue