We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80a4766 commit 03a81f6Copy full SHA for 03a81f6
django_enum/choices.py
@@ -83,9 +83,9 @@ class DjangoEnumPropertiesMeta(ChoicesMeta): # type: ignore
83
Needs to be strict subclass of same metaclass as Enum to make it to
84
the ImportError.
85
"""
86
- def __init__(cls, *args, **kwargs): # pylint: disable=W0231
+ def __new__(mcs, *args, **kwargs): # pylint: disable=W0231
87
raise ImportError(
88
- f'{cls.__class__.__name__} requires enum-properties to be '
+ f'{mcs.__name__} requires enum-properties to be '
89
f'installed.'
90
)
91
0 commit comments