perf: ticket optimization (#9094)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-11-17 17:34:52 +08:00
committed by GitHub
parent 30f37d9ebf
commit 71122312cf
6 changed files with 21 additions and 13 deletions

View File

@@ -35,4 +35,4 @@ class ActionChoices(BitChoices):
@classmethod
def display(cls, value):
return ', '.join([c.label for c in cls if c.value & value == c.value])
return ', '.join([str(c.label) for c in cls if c.value & value == c.value])