class MyUser(User): job = ... city = ....
MyUser.objects.get(pk=request.user) and MyUser.objects.get(pk=request.user.id) give me the same result. From doc pk should be int. But request.user is an object. Why are the requests the same for the object identifier and user?
edit: I know request.user is an object, but I want to know why the results are the same.
Thanks in advance
source share