Skip to content

[django-filter] add support for callable queryset getter - #16453

Open
sevdog wants to merge 1 commit into
python:mainfrom
sevdog:django-filters-fixes
Open

sevdog wants to merge 1 commit into
python:mainfrom
sevdog:django-filters-fixes

Conversation

@sevdog

@sevdog sevdog commented Sep 29, 2026

Copy link
Copy Markdown

As referenced in docs:

The QuerySet argument also supports callable behavior. If a callable is passed, it will be invoked with FilterSet.request as its only argument. This allows you to easily filter by properties on the request object without having to override the FilterSet.__init__.

@github-actions

This comment has been minimized.

@sevdog
sevdog force-pushed the django-filters-fixes branch from 73f79c8 to dd86c2b Compare September 29, 2026 08:21
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
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.

1 participant