1👍
✅
That’s not where Django keeps the logged-in user…
return JSONResponse(operator.attrgetter('user_permissions', 'username', 'first_name')(request.user))
Source:stackexchange.com