perf: Acl action add notify and warn

This commit is contained in:
feng
2024-09-05 15:49:58 +08:00
committed by feng626
parent 50d3a4906a
commit 054d385ffc
2 changed files with 2 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ class ActionAclSerializer(serializers.Serializer):
self.set_action_choices()
class Meta:
action_choices_exclude = [ActionChoices.warning]
action_choices_exclude = [ActionChoices.warning, ActionChoices.notify_and_warn]
def set_action_choices(self):
field_action = self.fields.get("action")