Closed RealOrangeOne closed 4 months ago
Django 5.0 added the option for form choices to be defined using enums. Unfortunately, this results in the values being normalised to a plain tuple, which loses the .hint attribute.
.hint
The normalisation doesn't happen in all cases, and there are fixed types which bypass it. Perhaps we can extend one of those for Choices to allow it to bypass normalisation.
Choices
Django 5.0 added the option for form choices to be defined using enums. Unfortunately, this results in the values being normalised to a plain tuple, which loses the
.hint
attribute.The normalisation doesn't happen in all cases, and there are fixed types which bypass it. Perhaps we can extend one of those for
Choices
to allow it to bypass normalisation.