fix: 工单创建bug (#7858)

Co-authored-by: feng626 <1304903146@qq.com>
pull/7864/head
fit2bot 2022-03-15 18:22:13 +08:00 committed by GitHub
parent a18b9bad0a
commit 90840a4417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class ActionsField(serializers.MultipleChoiceField):
super().__init__(*args, **kwargs)
def run_validation(self, data=empty):
data = super(ActionsField, self).run_validation()
data = super(ActionsField, self).run_validation(data)
if isinstance(data, list):
data = Action.choices_to_value(value=data)
return data