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

Fixed Ginkgo (Django Filter 0.11.0) Backward compatibility issue #269

Merged
merged 2 commits into from
Oct 16, 2020

Conversation

johnbaldwin
Copy link
Contributor

Added a shim for Django Filter 0.11.0 call to MethodFilter

This addresses a compatibility issue where custom filter methods for Django Filter 1.x onward uses the following method signature:

(self, queryset, name, value)

Whereas Django Filter 0.11.0 uses the following method signature:

(self, queryset, value)

Primarily, we need to implement the shim because positional arguements instead of keyword arguments are used.

Added a shim for Django Filter 0.11.0 call to MethodFilter

This addresses a compatibility issue where custom filter methods for Django Filter 1.x onward uses the following method signature:

`(self, queryset, name, value)`

Whereas Django Filter 0.11.0 uses the following method signature:

`(self, queryset, value)`

Primarily, we need to implement the shim because positional arguements instead of keyword arguments are used.
@johnbaldwin johnbaldwin merged commit a43ff8c into master Oct 16, 2020
@johnbaldwin johnbaldwin deleted the john/fix-gingko-filter branch October 16, 2020 08:48
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