fix: mlogbin allow_empty
This commit is contained in:
parent
baef2c586a
commit
e59a5894f3
|
@ -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']
|
||||||
|
|
Loading…
Reference in New Issue