diff --git a/allianceauth/authentication/templates/authentication/tokens.html b/allianceauth/authentication/templates/authentication/tokens.html
index e90be72b..afb81828 100644
--- a/allianceauth/authentication/templates/authentication/tokens.html
+++ b/allianceauth/authentication/templates/authentication/tokens.html
@@ -9,9 +9,9 @@
- Scopes |
- Actions |
- Character |
+ {% translate "Scoes" %} |
+ {% translate "Actions" %} |
+ {% translate "Character" %} |
@@ -19,7 +19,7 @@
{% for t in tokens %}
{% for s in t.scopes.all %}{{s.name}} {% endfor %} |
- |
+ |
{{t.character_name}} |
{% endfor %}
diff --git a/allianceauth/authentication/urls.py b/allianceauth/authentication/urls.py
index 03a0da18..6b1e9a5e 100644
--- a/allianceauth/authentication/urls.py
+++ b/allianceauth/authentication/urls.py
@@ -28,9 +28,9 @@ urlpatterns = [
name='token_management'
),
path(
- 'account/tokens/revoke/',
- views.token_revoke,
- name='token_revoke'
+ 'account/tokens/delete/',
+ views.token_delete,
+ name='token_delete'
),
path(
'account/tokens/refresh/',
diff --git a/allianceauth/authentication/views.py b/allianceauth/authentication/views.py
index b8c18a64..74e05c28 100644
--- a/allianceauth/authentication/views.py
+++ b/allianceauth/authentication/views.py
@@ -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: