Currently, django.db.enums.Choices
does not support named groups. I think this could be solved quite easily by adding a named_goups
class method to enums produced by metaclass django.db.enums.ChoicesType
and modifying ChoicesType.choices
to work with this method.