From 64cd67096c4658bc50e8a33eb64ed709c644fe98 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 6 Jun 2024 11:41:09 +0200 Subject: [PATCH] change name serve_did for ServerDidView --- idhub/urls.py | 4 ++-- idhub/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/idhub/urls.py b/idhub/urls.py index cae6aa6..9630215 100644 --- a/idhub/urls.py +++ b/idhub/urls.py @@ -21,7 +21,7 @@ from .views import ( LoginView, PasswordResetView, PasswordResetConfirmView, - serve_did, + ServeDidView, DobleFactorSendView, ) from .admin import views as views_admin @@ -183,7 +183,7 @@ urlpatterns = [ name='admin_2fauth'), path('admin/auth/2f/', DobleFactorSendView.as_view(), name='confirm_send_2f'), - path('did-registry//did.json', serve_did) + path('did-registry//did.json', ServeDidView, name="serve_did") # path('verification_portal/verify/', views_verification_portal.verify, # name="verification_portal_verify") diff --git a/idhub/views.py b/idhub/views.py index bda6e91..5a43570 100644 --- a/idhub/views.py +++ b/idhub/views.py @@ -90,7 +90,7 @@ class PasswordResetView(auth_views.PasswordResetView): return HttpResponseRedirect(self.success_url) -def serve_did(request, did_id): +def ServeDidView(request, did_id): domain = settings.DOMAIN id_did = f'did:web:{domain}:did-registry:{did_id}' did = get_object_or_404(DID, did=id_did)