Open saevarom opened 1 month ago
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 :+1:
django_filters/filters.py:34:5: F401 'django.utils.choices.BaseChoiceIterator' imported but unused
Great. Thanks 🎁
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
django_filters
filters.py
494
Project Total
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...
https://github.com/carltongibson/django-filter/pull/1668#issuecomment-2239311195
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.