py 3.11 compatible
This commit is contained in:
parent
a4130595ce
commit
a973f02a0b
1 changed files with 1 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue