Fix credentials not showing in user table
This commit is contained in:
parent
01fb0bcaef
commit
b76d71c08f
|
@ -109,10 +109,10 @@ class DIDTable(tables.Table):
|
||||||
|
|
||||||
|
|
||||||
class CredentialsTable(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):
|
def render_description(self, record):
|
||||||
return record.get_description()
|
return record.get_description
|
||||||
|
|
||||||
def render_status(self, record):
|
def render_status(self, record):
|
||||||
return record.get_status()
|
return record.get_status()
|
||||||
|
|
|
@ -107,16 +107,6 @@ class CredentialsView(MyWallet, SingleTableView):
|
||||||
subtitle = _('Credential management')
|
subtitle = _('Credential management')
|
||||||
icon = 'bi bi-patch-check-fill'
|
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):
|
def get_queryset(self):
|
||||||
queryset = VerificableCredential.objects.filter(
|
queryset = VerificableCredential.objects.filter(
|
||||||
user=self.request.user)
|
user=self.request.user)
|
||||||
|
|
Loading…
Reference in New Issue