carltongibson / django-filter

A generic system for filtering Django QuerySets based on user selections
https://django-filter.readthedocs.io/en/main/
Other
4.42k stars 767 forks source link

request is not passed to filterset #1496

Closed lubaskinc0de closed 2 years ago

lubaskinc0de commented 2 years ago

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' Снимок экрана (86)

aliceni81 commented 2 years ago

Encounter same problem

aliceni81 commented 2 years ago

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