fix: 修改ActionField

pull/7960/head
Jiangjie.Bai 2022-03-16 15:47:23 +08:00 committed by Jiangjie.Bai
parent c6a70b93df
commit bfcc1ec02b
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