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

Fix : django-filter looks for 'filterset_class' attribute now #288

Merged
merged 5 commits into from
Oct 30, 2023

Conversation

gbip
Copy link
Contributor

@gbip gbip commented Oct 19, 2023

The test tests.django_restframework_gis_tests.test_filters.TestRestFrameworkGisFilters.test_GeometryField_filtering was failing. After checking my database logs, it seemed that postgres was not receiving the right query, as the where clause was missing.

I looked a bit into the django-filter setup and it needed an update.

The fix was to rename the attribute filter_class to filterset_class, as per the doc.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

@gbip can you please rebase on the latest master?

nemesifier
nemesifier previously approved these changes Oct 30, 2023
Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

Thanks

@gbip gbip dismissed nemesifier’s stale review October 30, 2023 20:45

The merge-base changed after approval.

@nemesifier nemesifier merged commit 5840e4f into openwisp:master Oct 30, 2023
2 of 23 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