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

Add parameter filterset to filterset_factory #20

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

H4rryK4ne
Copy link
Contributor

filterset_factory got a new parameter in version 24.1.

Additionally I fixed the type annotation of parameter lookup_expr in django_filters.filterset.BaseFilterSet.filter_for_field

@H4rryK4ne
Copy link
Contributor Author

The tests are already failing on master branch (at least on my machine ... but with the same error message).

I don't understand, how these (yaml) tests work ... 😢

Martin Reidemeister added 3 commits December 15, 2024 17:21
The parameter filterset has been added in version 24.1
default value of lookup_expr is None, therefore it should have the respective type
@DavisRayM DavisRayM force-pushed the fix/filterset_factory branch from 1d707c7 to 07ad688 Compare December 16, 2024 01:21
Copy link
Owner

@DavisRayM DavisRayM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Side note: I don't use this package at the moment... I'll need to check if it still works as expected with the latest changes as it's most likely out of date at this point.

@DavisRayM DavisRayM merged commit c2ebd30 into DavisRayM:master Dec 16, 2024
4 checks passed
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 this pull request may close these issues.

2 participants