change name serve_did for ServerDidView

This commit is contained in:
Cayo Puigdefabregas 2024-06-06 11:41:09 +02:00
parent 5d2724eeab
commit 64cd67096c
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ from .views import (
LoginView, LoginView,
PasswordResetView, PasswordResetView,
PasswordResetConfirmView, PasswordResetConfirmView,
serve_did, ServeDidView,
DobleFactorSendView, DobleFactorSendView,
) )
from .admin import views as views_admin from .admin import views as views_admin
@ -183,7 +183,7 @@ urlpatterns = [
name='admin_2fauth'), name='admin_2fauth'),
path('admin/auth/2f/', DobleFactorSendView.as_view(), name='confirm_send_2f'), path('admin/auth/2f/', DobleFactorSendView.as_view(), name='confirm_send_2f'),
path('did-registry/<str:did_id>/did.json', serve_did) path('did-registry/<str:did_id>/did.json', ServeDidView, name="serve_did")
# path('verification_portal/verify/', views_verification_portal.verify, # path('verification_portal/verify/', views_verification_portal.verify,
# name="verification_portal_verify") # name="verification_portal_verify")

View file

@ -90,7 +90,7 @@ class PasswordResetView(auth_views.PasswordResetView):
return HttpResponseRedirect(self.success_url) return HttpResponseRedirect(self.success_url)
def serve_did(request, did_id): def ServeDidView(request, did_id):
domain = settings.DOMAIN domain = settings.DOMAIN
id_did = f'did:web:{domain}:did-registry:{did_id}' id_did = f'did:web:{domain}:did-registry:{did_id}'
did = get_object_or_404(DID, did=id_did) did = get_object_or_404(DID, did=id_did)