-
Notifications
You must be signed in to change notification settings - Fork 771
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
Fix grouped choices as dict #1668
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Thanks.
Oh, except the tests didn't like it... |
@saevarom I'm looking towards a release. Do you have time to address the failing test on Django 4.2? |
I'll take a look now |
@carltongibson I've pushed a fix, could you approve the test run? |
@saevarom great thanks. The isort run is playing up. I can look at that later on. Other than that 👍 |
|
Great. Thanks 🎁 |
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
@saevarom If we want perfect coverage here we'd also need to check the assert is raised for Django 4.2... |
This is now available in v24.3 on PyPI. Thanks @saevarom! |
Co-authored-by: Carlton Gibson <[email protected]>
Here is an attempt to fix #1667
I decided to go for a simple approach in normalizing the choices, and used a utility function from django 5.0. I think that's OK since this method of defining choices was first introduced in django 5.0.