Skip to content

request is not passed to filterset #1497

Answered by aliceni81
lubaskinc0de asked this question in Q&A
Discussion options

You must be logged in to vote

@lubaskinc0de I found the solution.
Need to pass request to the filter.
e.g. RequestFilter(request.GET, queryset=requests, request=request)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lubaskinc0de
Comment options

Answer selected by carltongibson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1496 on April 28, 2022 15:45.