From b76d71c08f2f8ec9136f604cbdf9991dd4f5d8ed Mon Sep 17 00:00:00 2001 From: Elijah Date: Thu, 14 Dec 2023 18:38:21 +0100 Subject: [PATCH] Fix credentials not showing in user table --- idhub/user/tables.py | 4 ++-- idhub/user/views.py | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/idhub/user/tables.py b/idhub/user/tables.py index cf90d33..a8856aa 100644 --- a/idhub/user/tables.py +++ b/idhub/user/tables.py @@ -109,10 +109,10 @@ class DIDTable(tables.Table): class CredentialsTable(tables.Table): - description = tables.Column(verbose_name="Details") + description = tables.Column(verbose_name="Details", empty_values=()) def render_description(self, record): - return record.get_description() + return record.get_description def render_status(self, record): return record.get_status() diff --git a/idhub/user/views.py b/idhub/user/views.py index c5c2752..7b0f44c 100644 --- a/idhub/user/views.py +++ b/idhub/user/views.py @@ -107,16 +107,6 @@ class CredentialsView(MyWallet, SingleTableView): subtitle = _('Credential management') icon = 'bi bi-patch-check-fill' - def get_context_data(self, **kwargs): - context = super().get_context_data(**kwargs) - creds = VerificableCredential.objects.filter( - user=self.request.user - ) - context.update({ - 'credentials': creds, - }) - return context - def get_queryset(self): queryset = VerificableCredential.objects.filter( user=self.request.user)