From 90ad7790e1712431a36b2370acb1a3257ca53544 Mon Sep 17 00:00:00 2001 From: Ariel Rin Date: Wed, 12 Oct 2022 20:22:20 +1000 Subject: [PATCH] rename revoke to delete to be clearer --- .../authentication/templates/authentication/tokens.html | 8 ++++---- allianceauth/authentication/urls.py | 6 +++--- allianceauth/authentication/views.py | 4 +--- 3 files changed, 8 insertions(+), 10 deletions(-) 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 @@ - - - + + + @@ -19,7 +19,7 @@ {% for t in tokens %} - + {% 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:
ScopesActionsCharacter{% translate "Scoes" %}{% translate "Actions" %}{% translate "Character" %}
{% for s in t.scopes.all %}{{s.name}} {% endfor %} {{t.character_name}}