feat: MlogbInSerializer wm_in allow_blank False
This commit is contained in:
parent
24bdb818a5
commit
6ea24b6b1c
|
@ -528,7 +528,8 @@ class MlogbInSerializer(CustomModelSerializer):
|
|||
model = Mlogb
|
||||
fields = ['id', 'mlog', 'mtask', 'wm_in', 'count_use', 'count_pn_jgqbl',
|
||||
'count_break', 'note', "parent"]
|
||||
extra_kwargs = {'count_use': {'required': True}, 'mtask': {'required': True}, 'wm_in': {'required': True}}
|
||||
extra_kwargs = {'count_use': {'required': True}, 'mtask': {'required': True},
|
||||
'wm_in': {'required': True, "allow_blank": False}}
|
||||
|
||||
def validate(self, attrs):
|
||||
mlog: Mlog = attrs['mlog']
|
||||
|
|
Loading…
Reference in New Issue