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)