Fix credentials not showing in user table

This commit is contained in:
Elijah 2023-12-14 18:38:21 +01:00
parent 01fb0bcaef
commit b76d71c08f
2 changed files with 2 additions and 12 deletions

View File

@ -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()

View File

@ -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)