From 996288460c96d880ae9d667ff820959698db3613 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 21 Feb 2024 10:16:32 +0100 Subject: [PATCH] fix public credential --- idhub/user/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/idhub/user/views.py b/idhub/user/views.py index a31fc63..d01c977 100644 --- a/idhub/user/views.py +++ b/idhub/user/views.py @@ -35,9 +35,7 @@ from idhub.user.tables import ( CredentialsTable ) from django.core.cache import cache -from django.conf import settings from idhub.user.forms import ( - ProfileForm, RequestCredentialForm, DemandAuthorizationForm, TermsConditionsForm @@ -367,7 +365,7 @@ class PublicCredentialJsonView(View): hash=pk, eidas1_did__isnull=False, ) - response = HttpResponse(self.object.data, content_type="application/json") + response = HttpResponse(self.object.get_data(), content_type="application/json") response['Content-Disposition'] = 'attachment; filename={}'.format("credential.json") return response