From a973f02a0bb74963cf56eeff02612d6f64e0470a Mon Sep 17 00:00:00 2001 From: Their Name Date: Sat, 7 Jan 2023 18:32:32 +0000 Subject: [PATCH] py 3.11 compatible --- common/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/utils.py b/common/utils.py index 4d51ca16..36233ef5 100644 --- a/common/utils.py +++ b/common/utils.py @@ -63,10 +63,7 @@ class PageLinksGenerator: def ChoicesDictGenerator(choices_enum): - choices_dict = {} - for attr in dir(choices_enum): - if not '__' in attr: - choices_dict[getattr(choices_enum, attr).value] = getattr(choices_enum, attr).label + choices_dict = dict(choices_enum.choices) return choices_dict def GenerateDateUUIDMediaFilePath(instance, filename, path_root):