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 7f47d0a commit 4a82f7bCopy full SHA for 4a82f7b
oauth2_provider/models.py
@@ -532,7 +532,7 @@ def revoke(self):
532
self = list(token)[0]
533
534
with suppress(access_token_model.DoesNotExist):
535
- access_token_model.objects.get(id=self.access_token_id).revoke()
+ access_token_model.objects.get(pk=self.access_token_id).revoke()
536
537
self.access_token = None
538
self.revoked = timezone.now()
0 commit comments