6👍
✅
Request object is available as member of a Class Based View object and can be accessed by self.request
. If, for some reason, you do pass it in **kwargs
use kwargs.get("request")
since it’s a plain dict.
Source:stackexchange.com