fix: mlogbin allow_empty

This commit is contained in:
caoqianming 2025-01-16 10:17:35 +08:00
parent baef2c586a
commit e59a5894f3
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ class MlogbInSerializer(CustomModelSerializer):
fields = ['id', 'mlog', 'mtask', 'wm_in', 'count_use', 'count_pn_jgqbl', fields = ['id', 'mlog', 'mtask', 'wm_in', 'count_use', 'count_pn_jgqbl',
'count_break', 'note', "parent"] 'count_break', 'note', "parent"]
extra_kwargs = {'count_use': {'required': True}, 'mtask': {'required': True}, extra_kwargs = {'count_use': {'required': True}, 'mtask': {'required': True},
'wm_in': {'required': True, "allow_blank": False}} 'wm_in': {'required': True, "allow_empty": False}}
def validate(self, attrs): def validate(self, attrs):
mlog: Mlog = attrs['mlog'] mlog: Mlog = attrs['mlog']