We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ebdd3 commit b25ac6cCopy full SHA for b25ac6c
rest_framework/authtoken/models.py
@@ -46,7 +46,7 @@ class TokenProxy(Token):
46
"""
47
@property
48
def pk(self):
49
- return self.user.pk
+ return self.user_id
50
51
class Meta:
52
proxy = 'rest_framework.authtoken' in settings.INSTALLED_APPS
0 commit comments