I am using a custom authentication backend for Django (which runs off couchdb). I have a custom user model.
As part of the login, I am doing a request.user = u
request.user = u
Added these in my view
from rest_framework.permissions import IsAuthenticated from rest_framework.authentication import TokenAuthentication authentication_classes = (TokenAuthentication,) permission_classes = (IsAuthenticated,)
and started getting original user