request is not passed to filterset #1497
Answered
by
aliceni81
lubaskinc0de
asked this question in
Q&A
-
i am passing request.GET to views but request is not being passed to getattr which is causing error 'NoneType' object has no attribute 'user' |
Beta Was this translation helpful? Give feedback.
Answered by
aliceni81
Apr 28, 2022
Replies: 2 comments 1 reply
-
Encounter same problem |
Beta Was this translation helpful? Give feedback.
0 replies
-
@lubaskinc0de I found the solution. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
carltongibson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lubaskinc0de I found the solution.
Need to pass request to the filter.
e.g. RequestFilter(request.GET, queryset=requests, request=request)