jade darko

Results 2 comments of jade darko

From what I can tell, `EnumMeta.__prepare__` doesn't seem to be used to generate the `attrs` dict enumfields uses A hack to bypass this is to set `attrs._cls_name` to `cls` before...

ah, that's exactly what `django-enumfields` does: https://github.com/hzdg/django-enumfields/commit/8a54ab6ca1a406b4f736b1d8a1daff49431a1c5c Sorry for the noise, I'll swap to using that package.