终端 批量更新 数据必填

This commit is contained in:
feng626 2021-07-26 19:19:57 +08:00 committed by Jiangjie.Bai
parent aeb43a04f6
commit 473a66719b

View File

@ -55,6 +55,11 @@ class TerminalSerializer(BulkModelSerializer):
fields = fields_small + fields_fk
read_only_fields = ['type', 'date_created']
extra_kwargs = {
'command_storage': {'required': True, },
'replay_storage': {'required': True, },
}
@staticmethod
def get_kwargs_may_be_uuid(value):
kwargs = {}