Actually spent sometime and I found out it's because the return is actually in JSONWebTokenAPIView 's post function. If I also want to override this, how can I and I have tried to print(serializer.is_valid()) which returned True Also, able to find my user object with serializer.object.get('user'), why would my respond_data for user becomes null though?
I actually asked this on stackoverflow but no replies yet
http://stackoverflow.com/questions/41880457/why-overriding-resetful-jsonwebtokenserializer-keeps-returning-token-only-pytho
Actually spent sometime and I found out it's because the return is actually in JSONWebTokenAPIView 's post function. If I also want to override this, how can I and I have tried to
print(serializer.is_valid())
which returnedTrue
Also, able to find my user object withserializer.object.get('user')
, why would my respond_data for user becomes null though?