Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choices hints are never shown in Django 5.0+ #66

Open
RealOrangeOne opened this issue Mar 14, 2024 · 0 comments · May be fixed by #69
Open

Choices hints are never shown in Django 5.0+ #66

RealOrangeOne opened this issue Mar 14, 2024 · 0 comments · May be fixed by #69

Comments

@RealOrangeOne
Copy link
Member

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.

@KIRA009 KIRA009 linked a pull request Mar 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant