rename revoke to delete to be clearer

This commit is contained in:
Ariel Rin
2022-10-12 20:22:20 +10:00
parent 6b8341ab5a
commit 90ad7790e1
3 changed files with 8 additions and 10 deletions

View File

@@ -1,6 +1,4 @@
from glob import escape
import logging
from symbol import except_clause
from django.conf import settings
from django.contrib import messages
@@ -73,7 +71,7 @@ def token_management(request):
return render(request, 'authentication/tokens.html', context)
@login_required
def token_revoke(request, token_id=None):
def token_delete(request, token_id=None):
try:
token = Token.objects.get(id=token_id)
if request.user == token.user: